Skip to content

Instantly share code, notes, and snippets.

View stpierre's full-sized avatar

Chris St. Pierre stpierre

  • Array
  • Lincoln, NE
View GitHub Profile
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 5206ecc..acc84a4 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -214,6 +214,7 @@ class YUMng(Bcfg2.Client.Tools.PkgTool):
except AttributeError:
self.yb._getConfig(self.yb.conf.config_file_path,
debuglevel=debuglevel)
+ print "debuglevel = %s" % self.yb.conf.debuglevel
--- a/src/lib/Client/Tools/POSIX.py
+++ b/src/lib/Client/Tools/POSIX.py
@@ -1,9 +1,6 @@
"""All POSIX Type client support for Bcfg2."""
__revision__ = '$Revision$'
-from stat import S_ISVTX, S_ISGID, S_ISUID, S_IXUSR, S_IWUSR, S_IRUSR, S_IXGRP
-from stat import S_IWGRP, S_IRGRP, S_IXOTH, S_IWOTH, S_IROTH, ST_MODE, S_ISDIR
-from stat import S_IFREG, ST_UID, ST_GID, S_ISREG, S_IFDIR, S_ISLNK, ST_MTIME
import binascii
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)