- forgotten --catalog alias for --repo option added
authorJan Kupec <jkupec@suse.cz>
Tue, 14 Aug 2007 15:45:06 +0000 (15:45 +0000)
committerJan Kupec <jkupec@suse.cz>
Tue, 14 Aug 2007 15:45:06 +0000 (15:45 +0000)
src/zypper-sources.cc
src/zypper.cc

index 90fe839..be3c58e 100644 (file)
@@ -131,7 +131,13 @@ static int do_init_repos()
 {
   RepoManager manager;
 
-  string specific_repo = copts.count( "repo" ) ? copts["repo"].front() : "";
+  string specific_repo = copts.count("repo") ? copts["repo"].front() : "";
+  
+  // rug compatibility
+  //! \todo support repo #
+  if (specific_repo.empty())
+    specific_repo = copts.count("catalog") ? copts["catalog"].front() : "";
+
   if (!specific_repo.empty())
   {
     MIL << "--repo set to '" << specific_repo
index 36b5176..0d6526f 100644 (file)
@@ -1111,8 +1111,6 @@ int one_command(int argc, char **argv)
 
   // --------------------------( search )-------------------------------------
 
-  // TODO -c, --catalog option
-
   else if (command == ZypperCommand::SEARCH)
   {
     ZyppSearchOptions options;