buildinstall: Only transform arch for lorax

The older buildinstall method fails if it sees ppc64p7 instead of ppc64.
Nothing changes for composes using Lorax.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-10-17 13:02:35 +02:00
parent b2b5dd919b
commit 02ddcf7387

View File

@ -94,9 +94,9 @@ class BuildinstallPhase(PhaseBase):
repo_baseurl = self.compose.paths.work.arch_repo(arch)
output_dir = self.compose.paths.work.buildinstall_dir(arch)
buildarch = get_valid_arches(arch)[0]
if buildinstall_method == "lorax":
buildarch = get_valid_arches(arch)[0]
for variant in self.compose.get_variants(arch=arch, types=['variant']):
if variant.is_empty:
continue
@ -115,7 +115,7 @@ class BuildinstallPhase(PhaseBase):
repo_baseurl,
output_dir,
is_final=self.compose.supported,
buildarch=buildarch,
buildarch=arch,
volid=volid))
)
else: