summaryrefslogtreecommitdiffstats
path: root/iutil.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2010-01-13 15:47:12 -0500
committerPeter Jones <pjones@redhat.com>2010-01-15 14:21:03 -0500
commit7e9ddee96d6f64369e0646f0a43627fafc001417 (patch)
tree60f09ffceadf1a80626d3fb62b0461be47e7d583 /iutil.py
parentb439ea9a1db509dec92e1335065db5296853d2c8 (diff)
downloadanaconda-7e9ddee96d6f64369e0646f0a43627fafc001417.tar.gz
anaconda-7e9ddee96d6f64369e0646f0a43627fafc001417.tar.xz
anaconda-7e9ddee96d6f64369e0646f0a43627fafc001417.zip
iutil.execWithRedirect() hasn't used searchPath= since 2006. Take it out.
iutil.execWithRedirect() stopped doing anything with searchPath in 2006 when clumens committed d0dec24. Remove these silly vestigal bits.
Diffstat (limited to 'iutil.py')
-rw-r--r--iutil.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/iutil.py b/iutil.py
index bd1cca8a7..c279cc194 100644
--- a/iutil.py
+++ b/iutil.py
@@ -68,17 +68,13 @@ class tee(threading.Thread):
# @param stdin The file descriptor to read stdin from.
# @param stdout The file descriptor to redirect stdout to.
# @param stderr The file descriptor to redirect stderr to.
-# @param searchPath Should command be searched for in $PATH?
# @param root The directory to chroot to before running command.
# @return The return code of command.
def execWithRedirect(command, argv, stdin = None, stdout = None,
- stderr = None, searchPath = 0, root = '/'):
+ stderr = None, root = '/'):
def chroot ():
os.chroot(root)
- if not searchPath and not os.access (command, os.X_OK):
- raise RuntimeError, command + " can not be run"
-
stdinclose = stdoutclose = stderrclose = lambda : None
argv = list(argv)