summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2009-08-10 22:02:18 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2009-08-10 22:02:18 +0200
commitc6c142f12f2cb032867e793e7ec12f664837a82b (patch)
tree8339896a1f9196d813543928d1533b83c11447b8
parent660d57e1e15ddff799cb7f8871581d986ed12524 (diff)
downloadportato-c6c142f12f2cb032867e793e7ec12f664837a82b.tar.gz
portato-c6c142f12f2cb032867e793e7ec12f664837a82b.tar.bz2
portato-c6c142f12f2cb032867e793e7ec12f664837a82b.zip
Newer portage versions only return a relative config path.
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/system_22.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/portato/backend/portage/system_22.py b/portato/backend/portage/system_22.py
index d720a06..f69e15c 100644
--- a/portato/backend/portage/system_22.py
+++ b/portato/backend/portage/system_22.py
@@ -63,3 +63,11 @@ class PortageSystem_22 (PortageSystem):
def new_package (self, cpv):
return PortagePackage_22(cpv)
+
+ def get_config_path (self):
+ path = PortageSystem.get_config_path(self)
+
+ if path[0] != "/":
+ return os.path.join(self.settings.settings["ROOT"], path)
+ else:
+ return path