[buildinstall] Don't copy files for empty variants

They are not there in the first place.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-02-24 07:28:48 +01:00
parent 133cb97aa0
commit 98a9e02b1b

View File

@ -165,6 +165,9 @@ class BuildinstallPhase(PhaseBase):
kickstart_file = get_kickstart_file(self.compose)
for arch in self.compose.get_arches():
for variant in self.compose.get_variants(arch=arch, types=["self", "variant"]):
if variant.is_empty:
continue
buildinstall_dir = self.compose.paths.work.buildinstall_dir(arch)
# Lorax runs per-variant, so we need to tweak the source path