From 0f104cea403b1fbf80a102ec54e034309179cf82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 20 Nov 2017 12:58:49 +0100 Subject: [PATCH] osbs: Get correct path to repo for addons MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We need to use `repository`, not `os_tree` path. For any non-addon variant they are the same, but for addons the original path does not work as it points to the parent really. Signed-off-by: Lubomír Sedlář --- pungi/phases/osbs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pungi/phases/osbs.py b/pungi/phases/osbs.py index 10785d4a..7a6f6a18 100644 --- a/pungi/phases/osbs.py +++ b/pungi/phases/osbs.py @@ -133,8 +133,8 @@ class OSBSThread(WorkerThread): raise RuntimeError( 'There is no variant %s to get repo from to pass to OSBS.' % (repo)) - os_tree = compose.paths.compose.os_tree('$basearch', variant, - create_dir=False) + os_tree = compose.paths.compose.repository('$basearch', variant, + create_dir=False) repo_file = os.path.join(compose.paths.work.tmp_dir(None, variant), 'compose-rpms-%s.repo' % self.num)