]> git.ipfire.org Git - pakfire.git/commitdiff
Allow pakfire command to work on chrooted ipfire systems.
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jul 2011 21:45:30 +0000 (23:45 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 21 Jul 2011 21:45:30 +0000 (23:45 +0200)
pakfire/base.py

index 0e97b9c4b35e0495f141a52e82b8d60f0988c100..f0705bdae1d72063afe1f773d007b9f3214a52e1 100644 (file)
@@ -46,7 +46,8 @@ class Pakfire(object):
 
                elif mode == "normal":
                        # check if we are actually running on an ipfire system.
-                       self.check_is_ipfire()
+                       if self.path == "/":
+                               self.check_is_ipfire()
 
                # Read configuration file(s)
                self.config = config.Config(type=mode)