Mailinglist Archive: opensuse-buildservice (80 mails)

< Previous Next >
Re: [opensuse-buildservice] OSC command broken?
  • From: Marcus Hüwe <suse-tux@xxxxxx>
  • Date: Mon, 4 Nov 2019 15:28:00 +0100
  • Message-id: <20191104142800.ekjrecaubqpnlean@linux>
On 2019-11-03 09:18:19 +0100, Mathias Homann wrote:
I'm getting this python error when I try to link a package on the commandline:

lemmy@kumiko:~> osc linkpac multimedia:apps icecast home:lemmy04
Traceback (most recent call last):
File "/usr/bin/osc", line 41, in <module>
r = babysitter.run(osccli)
File "/usr/lib/python3.6/site-packages/osc/babysitter.py", line 62, in run
return prg.main(argv)
File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 344, in main
return self.cmd(args)
File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 367, in cmd
retval = self.onecmd(argv)
File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 501, in onecmd
return self._dispatch_cmd(handler, argv)
File "/usr/lib/python3.6/site-packages/osc/cmdln.py", line 1232, in
_dispatch_cmd
return handler(argv[0], opts, *args)
File "/usr/lib/python3.6/site-packages/osc/commandline.py", line 2874, in
do_linkpac
link_pac(src_project, src_package, dst_project, dst_package, opts.force,
rev, opts.cicount, opts.disable_publish, opts.new_package, vrev)
File "/usr/lib/python3.6/site-packages/osc/core.py", line 5145, in link_pac
root = ET.fromstring(''.join(dst_meta))
TypeError: sequence item 0: expected str instance, bytes found

Marco fixed it in commit 02207d719c40f5f9f3998fba11e2181646579885 ("fix
decoding for osc linkpac") [1].


Marcus

[1]
https://github.com/openSUSE/osc/commit/02207d719c40f5f9f3998fba11e2181646579885
--
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-buildservice+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups
References