[Bug 400431] New: osc:UnboundLocalError: local variable 'dst_project' referenced before assignment
https://bugzilla.novell.com/show_bug.cgi?id=400431 Summary: osc:UnboundLocalError: local variable 'dst_project' referenced before assignment Product: openSUSE.org Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: BuildService AssignedTo: poeml@novell.com ReportedBy: crrodriguez@novell.com QAContact: adrian@novell.com CC: suse-tux@gmx.de Found By: Development When you use osc submitreq with wrong parameters. osc does not emit a proper error message instead displays a traceback. Expected result(s): a) print correct usage . b) in the case the OBS supports submitting complete projects into another project, a big fat warning with a confirmation dialog "You are going to submit a complete project and all it's packages to $dst_prject is this correct" Y/N Actual result: osc submitreq create home:elvigia multimedia:audio Traceback (most recent call last): File "/usr/bin/osc", line 12, in ? r = babysitter.run(osccli) File "/usr/lib64/python2.4/site-packages/osc/babysitter.py", line 33, in run return prg.main() File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib64/python2.4/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib64/python2.4/site-packages/osc/commandline.py", line 506, in do_submitreq devloc = show_develproject(conf.config['apiurl'], dst_project, dst_package) UnboundLocalError: local variable 'dst_project' referenced before assignment -- 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=400431
User suse-tux@gmx.de added comment
https://bugzilla.novell.com/show_bug.cgi?id=400431#c1
Marcus Hüwe
When you use osc submitreq with wrong parameters. osc does not emit a proper error message instead displays a traceback.
I just fixed it in svn (r4207).
b) in the case the OBS supports submitting complete projects into another project, a big fat warning with a confirmation dialog "You are going to submit a complete project and all it's packages to $dst_prject is this correct" Y/N
AFAIK this isn't supported, so I would consider this bug as "FIXED" (if not please reopen). -- 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