From 98a9e02b1bedf95cead09e2b90b6ebfccf8b2085 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 24 Feb 2016 07:28:48 +0100 Subject: [PATCH] [buildinstall] Don't copy files for empty variants MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit They are not there in the first place. Signed-off-by: Lubomír Sedlář --- pungi/phases/buildinstall.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pungi/phases/buildinstall.py b/pungi/phases/buildinstall.py index 00c14fa7..afec31d8 100644 --- a/pungi/phases/buildinstall.py +++ b/pungi/phases/buildinstall.py @@ -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