osbs: Get correct path to repo for addons
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ář <lsedlar@redhat.com>
This commit is contained in:
parent
91ee1fb854
commit
0f104cea40
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user