[Bug 478516] New: osc copypac doesn't work as expected with -t parameter
https://bugzilla.novell.com/show_bug.cgi?id=478516 Summary: osc copypac doesn't work as expected with -t parameter Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: hpj@novell.com QAContact: qa@suse.de Found By: --- Copying a package from the external BS to the internal BS doesn't work: hpj [~/work/suse/bs] osc copypac -t api.suse.de devel:playground:fastboot unique home:hpjansson:SLE-11:Fastboot Sending meta data... Traceback (most recent call last): File "/usr/bin/osc", line 12, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.6/site-packages/osc/babysitter.py", line 40, in run return prg.main() File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 256, in main return self.cmd(args) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 279, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 395, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.6/site-packages/osc/cmdln.py", line 1070, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.6/site-packages/osc/commandline.py", line 808, in do_copypac keep_maintainers=opts.keep_maintainers) File "/usr/lib/python2.6/site-packages/osc/core.py", line 2500, in copy_pac http_PUT(u, data=src_meta) File "/usr/lib/python2.6/site-packages/osc/core.py", line 1491, in http_PUT def http_PUT(*args, **kwargs): return http_request('PUT', *args, **kwargs) File "/usr/lib/python2.6/site-packages/osc/core.py", line 1438, in http_request api_host_options=conf.get_apiurl_api_host_options(url) File "/usr/lib/python2.6/site-packages/osc/conf.py", line 160, in get_apiurl_api_host_options return config['api_host_options'][apisrv] KeyError: 'source/home:hpjansson:SLE-11:Fastboot/unique/_meta' hpj [~/work/suse/bs] osc copypac -t http://api.suse.de/ devel:playground:fastboot unique home:hpjansson:SLE-11:Fastboot Sending meta data... Server returned an error: HTTP Error 302: Found It would be logical if the first instance worked, since I can pass -A api.suse.de to other commands. -- 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=478516 User hpj@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=478516#c1 --- Comment #1 from Hans Petter Jansson <hpj@novell.com> 2009-02-22 13:43:28 MST --- hpj [~/work/suse/bs] osc --version 0.110 -- 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=478516 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|Other |BuildService Version|Final |unspecified Product|openSUSE 11.1 |openSUSE.org QAContact|qa@suse.de |adrian@novell.com -- 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=478516 Pavol Rusnak <prusnak@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |poeml@novell.com |ovo.novell.com | -- 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=478516 User suse-tux@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=478516#c2 Marcus Hüwe <suse-tux@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-tux@gmx.de --- Comment #2 from Marcus Hüwe <suse-tux@gmx.de> 2009-02-23 18:16:07 MST --- (In reply to comment #0)
Copying a package from the external BS to the internal BS doesn't work:
hpj [~/work/suse/bs] osc copypac -t api.suse.de devel:playground:fastboot unique home:hpjansson:SLE-11:Fastboot
You're missing the protocol part - it should be "osc copypac -t (http|https)://api.suse.de ...". Maybe we should check if the passed target apiurl is valid... -- 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=478516 User hpj@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=478516#c3 --- Comment #3 from Hans Petter Jansson <hpj@novell.com> 2009-02-25 07:28:21 MST --- hpj [~/work/suse/bs] osc copypac -t http://api.suse.de devel:playground:fastboot mkinitrd home:hpjansson:SLE-11:Fastboot Sending meta data... Server returned an error: HTTP Error 302: Found hpj [~/work/suse/bs] osc copypac -t http://api.suse.de/ devel:playground:fastboot mkinitrd home:hpjansson:SLE-11:Fastboot Sending meta data... Server returned an error: HTTP Error 302: Found hpj [~/work/suse/bs] osc copypac -t https://api.suse.de/ devel:playground:fastboot mkinitrd home:hpjansson:SLE-11:Fastboot Sending meta data... Server returned an error: HTTP Error 400: Bad Request error saving package: value of develproject has to be a existing project (project 'home:hreinecke:Factory' does not exist) hpj [~/work/suse/bs] The latter command looks like it should work if there were a --nodevelproject flag, but copypac doesn't seem to have one. Besides, -A works without a protocol spec. -- 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=478516 User suse-tux@gmx.de added comment https://bugzilla.novell.com/show_bug.cgi?id=478516#c4 --- Comment #4 from Marcus Hüwe <suse-tux@gmx.de> 2009-03-11 09:26:17 MST --- (In reply to comment #3)
The latter command looks like it should work if there were a --nodevelproject flag, but copypac doesn't seem to have one.
I just added a --keep-develproject option to the copypac command (r6790).
Besides, -A works without a protocol spec.
Yes but there might be cases where it doesn't work as expected. -- 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