[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdesdk/scripts
From:       David Faure <faure () kde ! org>
Date:       2011-06-06 1:43:41
Message-ID: 20110606014341.54CB9AC783 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1235481 by dfaure:

error out if a stupid user (=me) specifies a module but not a parent component
  [it would trigger a bug where "repo-management" would show up in the results]


 M  +7 -1      kde-checkout-list.pl  


--- trunk/KDE/kdesdk/scripts/kde-checkout-list.pl #1235480:1235481
@@ -64,10 +64,16 @@
     $searchProtocol ne "tarball") {
   print "Invalid protocol \"$searchProtocol\" specified.\n";
   print "Run $Prog --help for more info\n";
-  exit 0;
+  exit 1;
 }
 &Version() if ($version);
 
+if ($searchModule && !$searchComponent) {
+  print "Module specified, but not in which component. Please use --component kde for instance.\n";
+  print "Run $Prog --help for more info\n";
+  exit 1;
+}
+
 my $curComponent = "";
 my $curModule = "";
 my $curProject = "";
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic