Created
October 12, 2011 18:43
-
-
Save stpierre/1282134 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/lib/Server/Plugins/Packages/Collection.py b/src/lib/Server/Plugins/Packages/Collection.py | |
index aed85fe..ab87257 100644 | |
--- a/src/lib/Server/Plugins/Packages/Collection.py | |
+++ b/src/lib/Server/Plugins/Packages/Collection.py | |
@@ -124,8 +124,7 @@ class Collection(object): | |
def setup_data(self, force_update=False): | |
""" do any collection-level data setup tasks """ | |
- for source in self.sources: | |
- source.setup_data(force_update) | |
+ pass | |
def complete(self, packagelist): | |
'''Build the transitive closure of all package dependencies | |
diff --git a/src/lib/Server/Plugins/Packages/__init__.py b/src/lib/Server/Plugins/Packages/__init__.py | |
index 1132543..6464387 100644 | |
--- a/src/lib/Server/Plugins/Packages/__init__.py | |
+++ b/src/lib/Server/Plugins/Packages/__init__.py | |
@@ -189,6 +189,10 @@ class Packages(Bcfg2.Server.Plugin.Plugin, | |
Collection.clear_cache() | |
+ for source in self.sources: | |
+ if not self.disableMetaData: | |
+ source.setup_data(force_update) | |
+ | |
for cfile in glob.glob(os.path.join(self.cachepath, "cache-*")): | |
if cfile not in cachefiles: | |
try: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment