Report unknown repos in 'lr repo ...'. Docs added.
authorJán Kupec <jkupec@suse.cz>
Mon, 12 Oct 2009 08:22:33 +0000 (10:22 +0200)
committerJán Kupec <jkupec@suse.cz>
Mon, 12 Oct 2009 08:22:33 +0000 (10:22 +0200)
doc/zypper.8
src/repos.cc

index 0bcee27..3ecc1e5 100644 (file)
@@ -906,10 +906,12 @@ Ignore user authentication data in the URI
 Ignore query string in the URI
 
 .TP
-.B repos (lr) [options]
-List all defined repositories.
+.B repos (lr) [options] [repo] ...
+List all defined repositories or show detailed information about those
+specified as arguments
 .IP
-The following data are printed for each repository found:
+If no arguments are given, the following data are printed for each repository
+found on the sytem:
 # (repository number), Enabled (whether the repository is enabled), Refresh
 (whether auto-refresh is enabled for the repository), Type (rpm-md, yast2,
 plaindir), Alias (shorthand for Name), and Name. Other columns can be added
@@ -921,6 +923,10 @@ change. Keep that in mind when using the numbers with the repository handling
 commands. On the other hand, using the alias instead of the number is always
 safe.
 
+To show detailed information about specific repositories, specify them
+as arguments, either by alias, number from simple \fBzypper lr\fR, or by
+URI; e.g. fB \fBzypper lr factory\fR, or \fBzypper lr 2\fR.
+
 .TP
 .I \-e, \-\-export <FILE.repo|->
 This option causes zypper to write repository definition of all defined
index 7af01b7..8ee2264 100644 (file)
@@ -888,7 +888,10 @@ void list_repos(Zypper & zypper)
     if (zypper.arguments().empty())
       repos.insert(repos.end(), manager.repoBegin(), manager.repoEnd());
     else
+    {
       get_repos(zypper, zypper.arguments().begin(), zypper.arguments().end(), repos, not_found);
+      report_unknown_repos(zypper.out(), not_found);
+    }
   }
   catch ( const Exception &e )
   {