From 90d9402a0572e4c4122e70562d283f008e55edb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 28 Jun 2021 09:26:27 +0200 Subject: [PATCH] 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) --- osc/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/build.py b/osc/build.py index 82d8102e..30ec5b0b 100644 --- a/osc/build.py +++ b/osc/build.py @@ -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