From: Michael Tremer Date: Sun, 6 Mar 2011 10:34:09 +0000 (+0100) Subject: Remove safety parameter which set the pakfire root to /tmp/pakfire. X-Git-Tag: 0.9.3~95^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2e26956a012b963b13cfc8986e95f698e1a0ea8;p=pakfire.git Remove safety parameter which set the pakfire root to /tmp/pakfire. This was just a little hack to make sure that I don't crash my system with any files that got installed by pakfire accidentially to the wrong place. --- diff --git a/pakfire/__init__.py b/pakfire/__init__.py index 440353abb..305b53aba 100644 --- a/pakfire/__init__.py +++ b/pakfire/__init__.py @@ -24,7 +24,7 @@ __version__ = 0.1 class Pakfire(object): - def __init__(self, path="/tmp/pakfire", builder=False, configs=[], + def __init__(self, path="/", builder=False, configs=[], disable_repos=None): # Check if we are operating as the root user. self.check_root_user() diff --git a/pakfire/cli.py b/pakfire/cli.py index 26f8c3cef..f578d1d47 100644 --- a/pakfire/cli.py +++ b/pakfire/cli.py @@ -39,7 +39,7 @@ class Cli(object): self.parse_common_arguments() self.parser.add_argument("--instroot", metavar="PATH", - default="/tmp/pakfire", + default="/", help=_("The path where pakfire should operate in.")) # Add sub-commands.