diff options
Diffstat (limited to 'py/mock.py')
-rwxr-xr-x | py/mock.py | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -364,8 +364,9 @@ def set_config_opts_per_cmdline(config_opts, options, args): config_opts['online'] = options.online legal_arches = { - 'i386' : ('i386'), - 'x86_64' : ('i386', 'x86_64'), + 'i386' : ('i386', 'i686'), + 'i686' : ('i386', 'i686'), + 'x86_64' : ('i386', 'i686', 'x86_64'), 'ppc' : ('ppc'), 'ppc64' : ('ppc', 'ppc64'), 'sparc' : ('sparc'), @@ -379,7 +380,7 @@ def check_arch_combination(target_arch): try: if target_arch not in legal_arches[host_arch]: raise mock.exception.InvalidArchitecture( - "Cannot build target %d on arch %s" % (target_arch, host_arch)) + "Cannot build target %s on arch %s" % (target_arch, host_arch)) except KeyError: raise mock.exception.InvalidArchitecture( "Unknown target architcture: %s" % target_arch) |