Mailinglist Archive: opensuse-bugs (4067 mails)

< Previous Next >
[Bug 713178] New: "osc getbinaries" in project scope throws error
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Fri, 19 Aug 2011 15:03:39 +0000
  • Message-id: <>

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@xxxxxx
ReportedBy: cgardner@xxxxxxxx
QAContact: adrian@xxxxxxxxxx
CC: mrueckert@xxxxxxxx
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 =
File "/usr/lib/python2.6/site-packages/osc/", line 52, in run
return prg.main()
File "/usr/lib/python2.6/site-packages/osc/", line 310, in main
return self.cmd(args)
File "/usr/lib/python2.6/site-packages/osc/", line 333, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python2.6/site-packages/osc/", line 449, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python2.6/site-packages/osc/", line 1179, in
return handler(argv[0], opts, *args)
File "/usr/lib/python2.6/site-packages/osc/", line 5471, in
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:
------- You are receiving this mail because: -------
You are on the CC list for the bug.

< Previous Next >
Follow Ups