1
0
mirror of https://github.com/openSUSE/osc.git synced 2024-11-10 06:46:15 +01:00

fix local product builds using obsrepositories:/ directives

We need an absolute path since osc calls build in user home directory.

Also extend the file name to hint to osc (and not any service
configuration)
This commit is contained in:
Adrian Schröter 2021-06-28 09:26:27 +02:00
parent 0c3164bc8b
commit 90d9402a05

View File

@ -1213,7 +1213,7 @@ def main(apiurl, opts, argv):
xml.remove(node)
if found_obsrepositories > 0:
build_descr = '_service:' + build_descr.rsplit('/', 1)[-1]
build_descr = os. getcwd() + '/_service:osc_obsrepositories:' + build_descr.rsplit('/', 1)[-1]
tree.write(open(build_descr, 'wb'))
# appliance