From: Michael Tremer Date: Thu, 21 Jul 2011 21:45:30 +0000 (+0200) Subject: Allow pakfire command to work on chrooted ipfire systems. X-Git-Tag: 0.9.4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0891edd2a18ce6c7f60d74f5ee515944278a1452;p=pakfire.git Allow pakfire command to work on chrooted ipfire systems. --- diff --git a/pakfire/base.py b/pakfire/base.py index 0e97b9c4b..f0705bdae 100644 --- a/pakfire/base.py +++ b/pakfire/base.py @@ -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)