pactest: if we are root, don't use fakeroot

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2007-11-04 14:30:11 -06:00
parent bd83a1fd85
commit 572bdb5c99
1 changed files with 3 additions and 1 deletions

View File

@ -188,7 +188,9 @@ def run(self, pacman):
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"]: