diff options
author | Dan McGee <dan@archlinux.org> | 2007-11-04 14:30:11 -0600 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-10 21:17:39 -0600 |
commit | 572bdb5c997846c426aba53392800e5866f725bd (patch) | |
tree | 334a66f65f20b4fac53107ee8d2623768c3b0855 | |
parent | bd83a1fd85c0e1e41be998b3633f613bce75f08c (diff) |
pactest: if we are root, don't use fakeroot
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-x | pactest/pmtest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pactest/pmtest.py b/pactest/pmtest.py index e0b3fd44..476eb27a 100755 --- a/pactest/pmtest.py +++ b/pactest/pmtest.py @@ -188,7 +188,9 @@ class pmtest: print "==> Running test" vprint("\tpacman %s" % self.args) - cmd = ["fakeroot"] + cmd = [""] + if os.geteuid() != 0: + cmd.append("fakeroot") if pacman["gdb"]: cmd.append("libtool gdb --args") if pacman["valgrind"]: |