From 695051f3be09c8277dde3be1cd33d7b51fc37f6e Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Tue, 18 Sep 2012 17:19:31 +0200 Subject: move the module validation below the loading of sync.profile otherwise the -module option will always die. Change-Id: I023ea5681a03a2848e1084eedbbcc66f8d060b69 Reviewed-by: Joerg Bornemann --- bin/syncqt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/syncqt b/bin/syncqt index 05ee7a8b84..9e68a30f95 100755 --- a/bin/syncqt +++ b/bin/syncqt @@ -739,8 +739,6 @@ while ( @ARGV ) { $minimal--; } } elsif ($var eq "module") { - print "module :$val:\n" if($verbose_level); - die "No such module: $val" unless(defined $modules{$val}); push @modules_to_sync, $val; } elsif ($var eq "separate-module") { my ($module, $prodir, $headerdir) = split(/:/, $val); @@ -802,6 +800,8 @@ if (length($qt_version)) { $qt_version =~ s,.*^#\h*define\h+QT_VERSION_STR\h+"([^"]+)".*,$1,sm; } foreach my $lib (@modules_to_sync) { + die "No such module: $lib" unless(defined $modules{$lib}); + #iteration info my $dir = $modules{$lib}; -- cgit v1.2.3