On 2017-05-09 18:22:30 +0200, Olaf Hering wrote:
Branching a pkg from one prj to another fails if osc is called from a copy of prj:
olaf@satriani:~/work/obs/home:olh:ocaml $ obs branch devel:languages:ocaml ocaml-curses home:olh:ocaml Traceback (most recent call last): File "/usr/bin/osc", line 41, in <module> r = babysitter.run(osccli) File "/usr/lib/python2.7/site-packages/osc/babysitter.py", line 61, in run return prg.main(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 343, in main return self.cmd(args) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 366, in cmd retval = self.onecmd(argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 500, in onecmd return self._dispatch_cmd(handler, argv) File "/usr/lib/python2.7/site-packages/osc/cmdln.py", line 1230, in _dispatch_cmd return handler(argv[0], opts, *args) File "/usr/lib/python2.7/site-packages/osc/commandline.py", line 3414, in do_branch if conf.get_configParser().get('general', 'apiurl') != apiurl: File "/usr/lib64/python2.7/ConfigParser.py", line 607, in get raise NoSectionError(section) ConfigParser.NoSectionError: No section: 'general' olaf@satriani:~/work/obs/home:olh:ocaml $ ..
This looks really strange... in case of a missing [general] section, osc is supposed to fail earlier. Can you check if your oscrc has a [general] section? Is "obs" an alias for or a wrapper around osc? If so, how is it defined?
olaf@satriani:~/work/obs $ obs branch devel:languages:ocaml ocaml-curses home:olh:ocaml BuildService API error: failed to branch: branch target package already exists: home:olh:ocaml/ocaml-curses
To me it looks like doing the branch is working fine, but dealing with the result is what confuses osc. I tried it with another pkg (ocaml-dbus) and that one failed in the same way.
Yep, the actual branching worked.
rpm -q --changelog osc | head * Di Mai 09 2017 marco.strigl@suse.com - 0.158.0
I'm pretty sure it also fails with the previous release. Marcus -- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-buildservice+owner@opensuse.org