diff options
author | 2013-12-27 19:24:01 +0100 | |
---|---|---|
committer | 2013-12-28 13:28:00 +0100 | |
commit | 95454bbc6cc295353e1cee2d4205d8a2ca91bf5c (patch) | |
tree | 6dfacb96efe2180ea14bf833b2157edde34cb299 /src | |
parent | VersionManager: Drop dependency on Portage (diff) | |
download | java-config-95454bbc6cc295353e1cee2d4205d8a2ca91bf5c.tar.gz java-config-95454bbc6cc295353e1cee2d4205d8a2ca91bf5c.tar.bz2 java-config-95454bbc6cc295353e1cee2d4205d8a2ca91bf5c.zip |
Drop query functions for old style virtuals
Old style virtuals (PROVIDES) were banned from tree
Diffstat (limited to 'src')
-rw-r--r-- | src/java_config_2/Package.py | 9 | ||||
-rw-r--r-- | src/java_config_2/VM.py | 21 | ||||
-rw-r--r-- | src/java_config_2/Virtual.py | 6 |
3 files changed, 0 insertions, 36 deletions
diff --git a/src/java_config_2/Package.py b/src/java_config_2/Package.py index 1733ea5..fc0d96d 100644 --- a/src/java_config_2/Package.py +++ b/src/java_config_2/Package.py @@ -66,15 +66,6 @@ class Package: """ return self.__get_deps("OPTIONAL_DEPEND") - def get_provides(self): - """ - Return the virtuals this package provides - """ - pv = self.query('PROVIDES') - if pv: - return pv.split(" ") - return [] - def __get_deps(self, query): """ Internal function to get package's (optional) dependencies; diff --git a/src/java_config_2/VM.py b/src/java_config_2/VM.py index 2c1b407..abd6fb5 100644 --- a/src/java_config_2/VM.py +++ b/src/java_config_2/VM.py @@ -100,25 +100,4 @@ class VM: raise PermissionError return None - def get_provides(self): - if 'PROVIDES' in self.config: - return self.config['PROVIDES'].split(' ') - return [] - - def provides(self, virtuals): - if 'PROVIDES' in self.config: - vp = self.config['PROVIDES'].split(' ') - else: - return False - - found = 0 - - for virtual in virtuals: - if virtual in vp: - found += 1 - else: - return False - - return found == len(virtuals) - # vim:set expandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap: diff --git a/src/java_config_2/Virtual.py b/src/java_config_2/Virtual.py index b865d05..e0834a0 100644 --- a/src/java_config_2/Virtual.py +++ b/src/java_config_2/Virtual.py @@ -197,12 +197,6 @@ class Virtual(Package): except: return [] - def get_provides(self): - """ - Return the virtuals this package provides - """ - return self.get_provider().get_provides() - def get_provider(self): """ Return whether a package is to be used by the Virtual. |