Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-04 14:30:11 -0600
committerDan McGee <dan@archlinux.org>2007-12-10 21:17:39 -0600
commit572bdb5c997846c426aba53392800e5866f725bd (patch)
tree334a66f65f20b4fac53107ee8d2623768c3b0855
parentbd83a1fd85c0e1e41be998b3633f613bce75f08c (diff)
pactest: if we are root, don't use fakeroot
Signed-off-by: Dan McGee <dan@archlinux.org>
-rwxr-xr-xpactest/pmtest.py4
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"]: