[pacman-dev] [PATCH v3 2/3] [pactest] Print a warning if fakechroot is not found

Chirantan Ekbote chirantan.ekbote at gmail.com
Thu Jan 31 22:24:22 EST 2013


Fixes FS#33551.

Signed-off-by: Chirantan Ekbote <chirantan.ekbote at gmail.com>
---
 test/pacman/pmtest.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/test/pacman/pmtest.py b/test/pacman/pmtest.py
index 1d198f0..d141567 100644
--- a/test/pacman/pmtest.py
+++ b/test/pacman/pmtest.py
@@ -204,7 +204,9 @@ def run(self, pacman):
                 cmd.append("fakeroot")
 
             fakechroot = util.which("fakechroot")
-            if fakechroot:
+            if not fakechroot:
+                print "WARNING: fakechroot not found!"
+            else:
                 cmd.append("fakechroot")
 
         if pacman["gdb"]:
-- 
1.8.1.2



More information about the pacman-dev mailing list