Use anaconda-core to detect buildarch
For historical reasons, lorax used the 'anaconda' package as a
touchstone to determine the architecture for the build. At some
point, this package became a metapackage that pulls in both the
GUI and headless installers.
In the modular world, it's possible that only the core and TUI bits
may be available for use. The only subpackage of anaconda that is
guaranteed to be on any viable system is anaconda-core, so let's
switch to using that for the touchstone instead of the metapackage.
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
(cherry picked from commit 2c3007beb8
)
This commit is contained in:
parent
5a7f9dd91b
commit
efb671e94f
@ -371,12 +371,12 @@ def get_buildarch(dbo):
|
||||
buildarch = None
|
||||
q = dbo.sack.query()
|
||||
a = q.available()
|
||||
for anaconda in a.filter(name="anaconda"):
|
||||
for anaconda in a.filter(name="anaconda-core"):
|
||||
if anaconda.arch != "src":
|
||||
buildarch = anaconda.arch
|
||||
break
|
||||
if not buildarch:
|
||||
logger.critical("no anaconda package in the repository")
|
||||
logger.critical("no anaconda-core package in the repository")
|
||||
sys.exit(1)
|
||||
|
||||
return buildarch
|
||||
|
Loading…
Reference in New Issue
Block a user