[Bug 713178] New: "osc getbinaries" in project scope throws error
https://bugzilla.novell.com/show_bug.cgi?id=713178 https://bugzilla.novell.com/show_bug.cgi?id=713178#c0 Summary: "osc getbinaries" in project scope throws error Classification: Internal Novell Products Product: openSUSE Build Service Version: 2.1 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: osc AssignedTo: suse-tux@gmx.de ReportedBy: cgardner@suse.com QAContact: adrian@novell.com CC: mrueckert@suse.com Found By: --- Blocker: --- When I'm in a project directory (not a package subdirectory) and run simply "osc getbinaries", I receive the following trace and resulting error condition. There is apparently no error handling.
osc getbinaries Traceback (most recent call last): File "/usr/bin/osc", line 21, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 52, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 310, in main return self.cmd(args) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 333, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 449, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1179, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 5471, in do_getbinaries repository = args[0] IndexError: list index out of range
Of course running "osc getbinaries <REPO>" or osc getbinaries <REPO> <ARCH>" from within one of the package subdirectoies it works as expected. And when I run "osc getbinaries <PROJ> <PACKAGE> <REPO> <ARCH>" it works no matter what directory I'm in. it's just that the error handling is missing in the above case. -- 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=713178
https://bugzilla.novell.com/show_bug.cgi?id=713178#c1
--- Comment #1 from craig gardner
https://bugzilla.novell.com/show_bug.cgi?id=713178
https://bugzilla.novell.com/show_bug.cgi?id=713178#c2
Marcus Hüwe
participants (1)
-
bugzilla_noreply@novell.com