paths: Add function to generate path to pkgset repo

This will be used to hold a repository for different package sets.

JIRA: COMPOSE-3620
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-07-25 15:18:18 +02:00
parent 90393c4b49
commit be61da0192

View File

@ -193,6 +193,20 @@ class WorkPaths(object):
makedirs(path) makedirs(path)
return path return path
def pkgset_repo(self, pkgset_name, arch=None, create_dir=True):
"""
Examples:
work/x86_64/repo/f30-compose
work/global/repo/f30-compose
"""
arch = arch or "global"
path = os.path.join(
self.topdir(arch, create_dir=create_dir), "repo", pkgset_name
)
if create_dir:
makedirs(path)
return path
def lookaside_repo(self, arch, variant, create_dir=True): def lookaside_repo(self, arch, variant, create_dir=True):
""" """
Examples: Examples: