[Bug 484869] New: zypper --repo works, zypper -r broke
https://bugzilla.novell.com/show_bug.cgi?id=484869 Summary: zypper --repo works, zypper -r broke Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: i586 OS/Version: openSUSE 11.1 Status: NEW Severity: Normal Priority: P5 - None Component: libzypp AssignedTo: zypp-maintainers@forge.provo.novell.com ReportedBy: Greg.Freemyer@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.6) Gecko/2009012700 SUSE/3.0.6-0.1.2 Firefox/3.0.6 This looks like a simple bug to fix. I'm running zypper 1.0.5 which I think is the latest on 11.1. Tried this on different machines. zypper --repo 13 in junk Seems to run properly and tells me that package "junk" is not in the repository. But, try: zypper -r 13 in junk And erroneously you get == Unknown command '13' Type 'zypper help' to get a list of global options and commands. == Per the man page both should work. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=484869 User dmacvicar@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=484869#c1 Duncan Mac-Vicar <dmacvicar@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CLOSED CC| |dmacvicar@novell.com, | |jkupec@novell.com Resolution| |INVALID --- Comment #1 from Duncan Mac-Vicar <dmacvicar@novell.com> 2009-03-12 11:49:43 MST --- -r is not a global option It should be zypper in -r 13 junk sudo zypper in -r 9 flash Loading repository data... Reading installed packages... 'flash' not found. Resolving package dependencies... Nothing to do. Why it does not say that --repo as global is invalid, is another story. Jano? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=484869 User jkupec@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=484869#c2 --- Comment #2 from Ján Kupec <jkupec@novell.com> 2009-03-13 03:12:44 MST --- I guess getopt is the guilty. It treats it as --repos-dir foo (you can do this with any long option)! I'm not entirely sure if this is good or bad. But this particular case is really confusing. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com