do not ad to image build and live tasks the variant if it is empty
Signed-off-by: Dennis Gilmore <dennis@ausil.us>
This commit is contained in:
parent
466a0eb24f
commit
b4a008f86a
@ -58,7 +58,8 @@ class ImageBuildPhase(PhaseBase):
|
||||
repo = shortcuts.force_list(image_conf.get('repo', []))
|
||||
|
||||
extras = shortcuts.force_list(image_conf.pop('repo_from', []))
|
||||
extras.append(variant.uid)
|
||||
if not variant.is_empty:
|
||||
extras.append(variant.uid)
|
||||
|
||||
for extra in extras:
|
||||
v = self.compose.variants.get(extra)
|
||||
|
@ -124,8 +124,10 @@ class LiveImagesPhase(PhaseBase):
|
||||
if 'ksurl' in data:
|
||||
cmd['ksurl'] = resolve_git_url(data['ksurl'])
|
||||
|
||||
cmd["repos"] = [translate_path(
|
||||
self.compose, self.compose.paths.compose.repository(arch, variant, create_dir=False))]
|
||||
cmd["repos"] = []
|
||||
if not variant.is_empty:
|
||||
cmd["repos"].append(translate_path(
|
||||
self.compose, self.compose.paths.compose.repository(arch, variant, create_dir=False)))
|
||||
|
||||
# additional repos
|
||||
cmd["repos"].extend(data.get("additional_repos", []))
|
||||
|
Loading…
Reference in New Issue
Block a user