gather: Use another variant as lookaside

Create a temporary repository and add it as another lookaside in the
compose.

JIRA: COMPOSE-2426
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2018-04-20 09:43:33 +02:00
parent ea0964eeef
commit eaf58f7d40
3 changed files with 273 additions and 1 deletions

View file

@ -179,6 +179,17 @@ class WorkPaths(object):
makedirs(path)
return path
def lookaside_repo(self, arch, variant, create_dir=True):
"""
Examples:
work/x86_64/Server/lookaside_repo
"""
path = os.path.join(self.topdir(arch, create_dir=create_dir),
variant.uid, "lookaside_repo")
if create_dir:
makedirs(path)
return path
def package_list(self, arch=None, variant=None, pkg_type=None, create_dir=True):
"""
Examples:
@ -200,6 +211,13 @@ class WorkPaths(object):
path = os.path.join(path, file_name)
return path
def lookaside_package_list(self, arch, variant, create_dir=True):
"""
Examples:
work/x86_64/package_list/Server.x86_64.lookaside.conf
"""
return self.package_list(arch, variant, pkg_type='lookaside', create_dir=create_dir)
def pungi_download_dir(self, arch, create_dir=True):
"""
Examples: