diff options
author | René 'Necoro' Neumann <necoro@necoro.net> | 2009-05-15 18:34:34 +0200 |
---|---|---|
committer | René 'Necoro' Neumann <necoro@necoro.net> | 2009-05-15 18:34:34 +0200 |
commit | eb9f7af6073d0295d6f2b8b5cef0b8a3da7267c8 (patch) | |
tree | 3a25e69374c5a589fcfe7333d72bfe453221d5b2 /portato/backend | |
parent | 9a4046fc6a557550425e865d019d2dca1c1a9a55 (diff) | |
download | portato-eb9f7af6073d0295d6f2b8b5cef0b8a3da7267c8.tar.gz portato-eb9f7af6073d0295d6f2b8b5cef0b8a3da7267c8.tar.bz2 portato-eb9f7af6073d0295d6f2b8b5cef0b8a3da7267c8.zip |
Add 'eapi_supported'
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 3 | ||||
-rw-r--r-- | portato/backend/system_interface.py | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py index 7470fdc..d7c7806 100644 --- a/portato/backend/portage/system.py +++ b/portato/backend/portage/system.py @@ -49,6 +49,9 @@ class PortageSystem (SystemInterface): "system" : syssets.SystemSet } + def eapi_supported (self, eapi): + return portage.eapi_is_supported(eapi) + def has_set_support (self): return False diff --git a/portato/backend/system_interface.py b/portato/backend/system_interface.py index 5f4c50a..43de1ec 100644 --- a/portato/backend/system_interface.py +++ b/portato/backend/system_interface.py @@ -17,6 +17,12 @@ class SystemInterface (object): SET_INSTALLED = "__portato_installed__" SET_UNINSTALLED = "__portato_uninstalled__" + def eapi_supported (self, eapi): + """Signals, whether the given eapi is supported. + + @rtype: boolean""" + raise NotImplementedError + def has_set_support (self): """Signals, whether this backend supports sets. |