diff options
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 3 | ||||
-rw-r--r-- | portato/backend/system_interface.py | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 53384dd..9cda5ab 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -85,6 +85,9 @@ class PortageSystem (SystemInterface): return [package.PortagePackage(x) for x in list_of_packages] + def get_global_settings (self, key): + return self.settings.settings[key] + def find_best (self, list): return package.PortagePackage(portage.best(list)) diff --git a/portato/backend/system_interface.py b/portato/backend/system_interface.py index ade2414..f37d0a0 100644 --- a/portato/backend/system_interface.py +++ b/portato/backend/system_interface.py @@ -192,6 +192,16 @@ class SystemInterface: raise NotImplementedError + def get_global_settings(self, key): + """Returns the value of a global setting, i.e. ARCH, USE, ROOT, DISTDIR etc. + + @param key: the setting to return + @type key: string + @returns: the value of this setting + @rtype: string""" + + raise NotImplementedError + def new_package (self, cpv): """Returns an instance of the appropriate Package-Subclass. |