diff options
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. |