include multilib packages in repos

This commit is contained in:
Jay Greguske 2014-04-17 19:00:08 -04:00 committed by Mike McLean
parent 61c1737652
commit 794abb71b1

View file

@ -48,6 +48,12 @@ EXPAND_ARCHES = {
'sh4': ['sh4a']
}
MULTILIB_ARCHES = {
'x86_64': 'i386',
'ppc64': 'ppc',
's390x': 's390'
}
def parse_args(args):
"""Parse our opts/args"""
usage = """
@ -78,6 +84,14 @@ def parse_args(args):
if EXPAND_ARCHES.has_key(arch):
opts.arches.extend(EXPAND_ARCHES[arch])
# support multilib repos
for arch in opts.arches[:]:
multilib_arch = MULTILIB_ARCHES.get(arch)
if multilib_arch:
opts.arches.append(multilib_arch)
if multilib_arch in EXPAND_ARCHES:
opts.arches.extend(EXPAND_ARCHES[multilib_arch])
# always include noarch
if not 'noarch' in opts.arches:
opts.arches.append('noarch')