[entropy.spm] drop unused methods: disable_package_compile_options, enable_package_compile_options

This commit is contained in:
Fabio Erculiani
2011-09-06 23:18:44 +02:00
parent e2d5665843
commit 8364852edf
2 changed files with 0 additions and 50 deletions

View File

@@ -1313,24 +1313,6 @@ class PortagePlugin(SpmPlugin):
return data
def enable_package_compile_options(self, package, options):
"""
Reimplemented from SpmPlugin class.
"""
result = self._unset_package_useflags(package, options)
if not result:
return False
return self._handle_new_useflags(package, options, "")
def disable_package_compile_options(self, package, options):
"""
Reimplemented from SpmPlugin class.
"""
result = self._unset_package_useflags(package, options)
if not result:
return False
return self._handle_new_useflags(package, options, "-")
def get_installed_package_content(self, package, root = None):
"""
Reimplemented from SpmPlugin class.

View File

@@ -401,38 +401,6 @@ class SpmPlugin(Singleton):
"""
raise NotImplementedError()
def enable_package_compile_options(self, package, options):
"""
WARNING: this is an Entropy Server functionality.
Enable compile options (also known as USE flags) for package.
Compile options are intended to be features that package can
expose to other packages or directly to user.
@param package: package name
@type package: string
@param options: list of compile options to enable
@type options: string
@return: enable status, True if enabled, False if not
@rtype: bool
"""
raise NotImplementedError()
def disable_package_compile_options(self, package, options):
"""
WARNING: this is an Entropy Server functionality.
Disable compile options (also known as USE flags) for package.
Compile options are intended to be features that package can
expose to other packages or directly to user.
@param package: package name
@type package: string
@param options: list of compile options to disable
@type options: string
@return: enable status, True if disabled, False if not
@rtype: bool
"""
raise NotImplementedError()
def get_installed_package_content(self, package, root = None):
"""
Return list of files/directories owned by package.