Michal Marek (mmarek@suse.cz) wrote:
Adam Spiers napsal(a):
Hi all,
Such is the value of the openSUSE Build Service from my perspective that I now have over 40 repositories registered on my main SUSE machine! I found that zypper was slightly awkward for managing this number of repositories, so I found a few hours of spare time to knock up the following; hope it's of use to somebody. Patches welcome!
Nice :-).
I don't have patches right now, just some suggestions:
The help says that the default is the 'l' command
That's not exactly what it says ;-) It says: If no zypper command is provided, it defaults to the 'l' command, [...] Note 'zypper' not 'rypper'. So, this refers to zypper-cmd in the usage: Usage: rypper [<specifiers...>] [<zypper-cmd> [<zypper-args> ...]] rather than referring to running rypper with no arguments. In other words, for something like: rypper -e zypper-cmd defaults to the pseudo-command 'l'. But I agree that the help is a bit confusing. Suggestions very welcome for how to explain it better! Or maybe I should change the default behaviour with no options from rypper --help to rypper l -iaeu But I am not sure how useful that command is without any specifiers, since if you wanted to see all repos, you could just run zypper lr. I suppose that the columns shown are slightly more useful than zypper lr and slightly less verbose than zypper lr -d. What do you think?
rypper l prints the following warning: $ LC_ALL=C ./rypper l Argument "^[[?1034h#" isn't numeric in numeric comparison (<=>) at ./rypper line 193. id alias enabled uri
... Caused by $ LC_ALL=C zypper lr -d | cat -v | head -1 ^[[?1034h# | Alias | Name | Enabled | Refresh | Priority | Type | URI | Service
Not sure why zypper prints the escape sequence (it's the 11.1 version), maybe a zypper bug.
rypper fails to parse localized zypper messages, the easies workaround would be $ENV{LC_MESSAGES} = "C" before running zypper: $ LC_MESSAGES=cs_CZ.UTF-8 ./rypper -e id alias refresh ------------------- $
Very strange! Version 0.21 now has this workaround: http://adamspiers.org/computing/rypper Please let me know if this fixes it. Thanks a lot for the feedback! Adam -- To unsubscribe, e-mail: opensuse-softwaremgmt+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-softwaremgmt+help@opensuse.org