diff options
| author | Michael E Brown <mebrown@michaels-house.net> | 2007-11-17 22:20:53 -0600 |
|---|---|---|
| committer | Michael E Brown <mebrown@michaels-house.net> | 2007-11-17 22:20:53 -0600 |
| commit | e1b25747b221b152205ce693d077b9ced560e554 (patch) | |
| tree | c51c8c8318b3dd1640ae33f1cfa69388329c6c3a /src | |
| parent | 80466c5312be685597b12b641ed32a609cd9c111 (diff) | |
| download | mock-e1b25747b221b152205ce693d077b9ced560e554.tar.gz mock-e1b25747b221b152205ce693d077b9ced560e554.tar.xz mock-e1b25747b221b152205ce693d077b9ced560e554.zip | |
use internal setarch rather than calling external.
Diffstat (limited to 'src')
| -rwxr-xr-x | src/mock.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mock.py b/src/mock.py index 6cb4fd8..fa90d36 100755 --- a/src/mock.py +++ b/src/mock.py @@ -316,11 +316,10 @@ def main(retParams): chroot.init() chroot._mountall() try: - setarch = "" - if config_opts['internal_setarch'] and os.path.exists('/usr/bin/setarch'): - setarch = "/usr/bin/setarch %s" % config_opts['target_arch'] + if config_opts['internal_setarch']: + mock.util.condPersonality(config_opts['target_arch']) cmd = ' '.join(args[1:]) - os.system("PS1='mock-chroot> ' %s /usr/sbin/chroot %s %s" % (setarch, chroot.rootdir, cmd)) + os.system("PS1='mock-chroot> ' /usr/sbin/chroot %s %s" % (chroot.rootdir, cmd)) finally: chroot._umountall() |
