diff options
author | necoro <> | 2007-03-15 22:45:43 +0000 |
---|---|---|
committer | necoro <> | 2007-03-15 22:45:43 +0000 |
commit | 5138b1e23d34e0a72e0c2f4ae52256e14d825320 (patch) | |
tree | e300a29dd1acbd155e9afd9ca0de0036e85bb4a1 /portato/backend | |
parent | 47a7b294e5a889afb932d371021d2b53adc20665 (diff) | |
download | portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.tar.gz portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.tar.bz2 portato-5138b1e23d34e0a72e0c2f4ae52256e14d825320.zip |
Added etc-proposals plugin
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. |