From 572bdb5c997846c426aba53392800e5866f725bd Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 4 Nov 2007 14:30:11 -0600 Subject: pactest: if we are root, don't use fakeroot Signed-off-by: Dan McGee --- pactest/pmtest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"]: -- cgit v1.2.3-70-g09d2