From eb9f7af6073d0295d6f2b8b5cef0b8a3da7267c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20=27Necoro=27=20Neumann?= Date: Fri, 15 May 2009 18:34:34 +0200 Subject: Add 'eapi_supported' --- portato/backend/portage/system.py | 3 +++ portato/backend/system_interface.py | 6 ++++++ 2 files changed, 9 insertions(+) (limited to 'portato') 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. -- cgit v1.2.3