diff options
author | Sol Jerome <sol.jerome@gmail.com> | 2012-04-17 14:47:41 -0500 |
---|---|---|
committer | Sol Jerome <sol.jerome@gmail.com> | 2012-04-17 14:47:41 -0500 |
commit | 918382284bb0195ab01ff470c4e4a016bc8aad87 (patch) | |
tree | d84c6d1faf6279666b3e99208c1d1485e84fe562 /src/lib/Bcfg2/Server/Plugins/Packages/Collection.py | |
parent | 67555319c4501ad0ce312244c2c983a7b592a582 (diff) | |
parent | 9d3a445882c99a7d5a7aa929dc00abe1b9b20d88 (diff) | |
download | bcfg2-918382284bb0195ab01ff470c4e4a016bc8aad87.tar.gz bcfg2-918382284bb0195ab01ff470c4e4a016bc8aad87.tar.bz2 bcfg2-918382284bb0195ab01ff470c4e4a016bc8aad87.zip |
Merge branch 'add-essential-pkgs'
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Collection.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Packages/Collection.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py index 59c50fe8b..959dac03b 100644 --- a/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py +++ b/src/lib/Bcfg2/Server/Plugins/Packages/Collection.py @@ -97,6 +97,12 @@ class Collection(Bcfg2.Server.Plugin.Debuggable): return source.get_deps(self.metadata, package) return [] + def get_essential(self): + essential = set() + for source in self.sources: + essential |= source.essentialpkgs + return essential + def get_provides(self, package): for source in self.sources: providers = source.get_provides(self.metadata, package) |