Sha256: 440bdc0d4fbf1cea66c12905595142dd8e144549ab2d05ddaccb54644a63f04f
Contents?: true
Size: 375 Bytes
Versions: 20
Compression:
Stored size: 375 Bytes
Contents
#!/usr/bin/env python import os.path, sys if not os.path.isfile('/etc/mock/default.cfg'): sys.stderr.write("This does not seem to be a Red Hat compatible OS.\n") exit(1) vars = { 'config_opts': {} } execfile("/etc/mock/default.cfg", vars) arch = vars['config_opts']['target_arch'] if arch == 'i386' or arch == 'i586' or arch == 'i686': print('i386') else: print(arch)
Version data entries
20 entries across 20 versions & 1 rubygems