Bug 364391

Summary: zypper repos should optionally give the repo URIs
Product: [openSUSE] openSUSE 11.0 Reporter: Volker Kuhlmann <bugz57>
Component: libzyppAssignee: Jan Kupec <jkupec>
Status: RESOLVED FIXED QA Contact: Duncan Mac-Vicar <dmacvicar>
Severity: Enhancement    
Priority: P5 - None CC: bugz57, dmacvicar, francis, mmeeks, msvec, mvidner
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Volker Kuhlmann 2008-02-23 21:01:41 UTC
zypper repos
# | Enabled | Refresh | Type   | Alias                 | Name
--+---------+---------+--------+-----------------------+----------------------
1 | Yes     | Yes     | yast2  | Factory_OSS           | Factory OSS
2 | Yes     | No      | yast2  | openSUSE-OSS-KDE 11.0 | openSUSE-OSS-KDE 11.0
3 | No      | Yes     | rpm-md | Factory_gwdg          | Factory gwdg
4 | Yes     | Yes     | yast2  | Factory_non-OSS_extra | Factory non-OSS extra
5 | Yes     | Yes     | yast2  | Factory-debug         | Factory-debug

I often find myself wanting to check the repo URLs, and would find it useful if e.g. repos -v gave the URI of each repo as well, on another line of output. And please consider using an empty line between each repo, if the output is wider than the terminal window (which happens often) it is barely readable.  Thanks.
Comment 1 Volker Kuhlmann 2008-02-23 21:14:20 UTC
Ah, just found zypper -v repos, but it doesn't work from inside shell, which is  what I've been using. Other global options might be useful from shell as well. Exiting shell isn't always desirable because it loses all the built-up caches.
Comment 2 Jan Kupec 2008-02-25 11:28:24 UTC
Yes, the -v for repos is a bit unfortunate. I suggest to implement it through a new -u (or --urls) command option of the repos command.
Comment 3 Jan Kupec 2008-02-25 11:28:48 UTC
(In reply to comment #1 from Volker Kuhlmann)
> Ah, just found zypper -v repos, but it doesn't work from inside shell, which is
>  what I've been using. Other global options might be useful from shell as well.
> Exiting shell isn't always desirable because it loses all the built-up caches.

About the shell, let me ask you this question first: is the shell still useful for you since 11alpha2 after the speed-up of the underlying libzypp metadata handling? (Apart from saving you from typing 'zypper' all the time :O).
Comment 4 Volker Kuhlmann 2008-02-26 09:13:30 UTC
:)
You're right, zypper is now really fast and the shell not really needed any more. Good work. Thanks!

A legible multiline output of zypper -v repos would still be useful though. The current output is made for easy parsing but is not easy reading.
Comment 5 Jan Kupec 2008-04-15 16:24:26 UTC
done in svn, to be in zypper 0.11.1

$ zypper help repos
repos (lr)

List all defined repositories.

  Command options:
-e, --export <FILE.repo>  Export all defined repositories as a single local .repo file.
-u, --uri                 Show also base URI of repositories.
-p, --priority            Show also repository priority.
-d, --details             Show more information like URI, priority, type.
-U, --sort-by-uri         Sort the list by URI.
-P, --sort-by-priority    Sort the list by repository priority.
-A, --sort-by-alias       Sort the list by alias.
-N, --sort-by-name        Sort the list by name.
Comment 6 Jan Kupec 2008-04-24 13:38:55 UTC
*** Bug 383348 has been marked as a duplicate of this bug. ***
Comment 7 Jan Kupec 2008-04-27 22:30:19 UTC
submitted