#802 osbs: Get correct path to repo for addons
Merged 6 years ago by lsedlar. Opened 6 years ago by lsedlar.
lsedlar/pungi osbs-addon-repo  into  master

file modified
+2 -2
@@ -133,8 +133,8 @@ 

              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)

  

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.

Pull-Request has been merged by lsedlar

6 years ago