]> git.ipfire.org Git - pakfire.git/commitdiff
Remove safety parameter which set the pakfire root to /tmp/pakfire.
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2011 10:34:09 +0000 (11:34 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 6 Mar 2011 10:34:09 +0000 (11:34 +0100)
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.

pakfire/__init__.py
pakfire/cli.py

index 440353abb067c6ed0050ee0c8d6bc5d4cc3ddfa6..305b53abaf3a3f0169ac563dffeed28b9d45cd86 100644 (file)
@@ -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()
index 26f8c3cef39f0128f09bd1fdbdba7fcfedd92528..f578d1d472bd141690ecdba13906782bffc90e8c 100644 (file)
@@ -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.