diff options
| -rwxr-xr-x | cdist | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -551,17 +551,17 @@ def target_factory(s, debug, work): elif s == 'raspbian': target = ChrootTarget(s, None, None, work) elif s == 'host': - l = f.readline().strip().split() if command_and_read('uname -m').read().strip() == 'x86_64': bits = 64 else: bits = 32 try: f = open('/etc/fedora-release', 'r') + l = f.readline().strip().split() target = HostTarget("fedora", l[2], bits, work) except Exception as e: if os.path.exists('/etc/arch-release'): - target = HostTarget("arch", None, l[2], bits, work) + target = HostTarget("arch", None, bits, work) else: raise Error("could not identify distribution for `host' target (%s)" % e) elif s.startswith('osx-'): |
