diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-10-28 00:30:09 +0100 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-10-28 00:30:09 +0100 |
commit | 58c5b49ae6d822f07879bf7f6a87271b77e7e75d (patch) | |
tree | a166c0eb6632f9b837d407b37007bf925ac2e15f /portato/backend/portage/system.py | |
parent | 4a067c072e3eaa65cb434307ea4e9280d3af9b68 (diff) | |
download | portato-58c5b49ae6d822f07879bf7f6a87271b77e7e75d.tar.gz portato-58c5b49ae6d822f07879bf7f6a87271b77e7e75d.tar.bz2 portato-58c5b49ae6d822f07879bf7f6a87271b77e7e75d.zip |
Corrected config path handling.
Now also the 2.1 portage does not include / anymore. Handle this.
Diffstat (limited to 'portato/backend/portage/system.py')
-rw-r--r-- | portato/backend/portage/system.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 83eb37a..620ab73 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -68,7 +68,12 @@ class PortageSystem (SystemInterface): return PortagePackage(cpv) def get_config_path (self): - return portage.USER_CONFIG_PATH + path = portage.USER_CONFIG_PATH + + if path[0] != "/": + return os.path.join(self.settings.settings["ROOT"], path) + else: + return path def get_merge_command (self): return ["/usr/bin/python", "/usr/bin/emerge"] |