summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
diff options
context:
space:
mode:
authorSol Jerome <sol.jerome@gmail.com>2013-04-11 17:41:07 -0500
committerSol Jerome <sol.jerome@gmail.com>2013-04-11 17:41:50 -0500
commit140e07dcfabe997161bd1ca957713b619c40b6cf (patch)
treea33d3ca7f3f17bfd133366302e3018c1c7d959e9 /src/lib/Bcfg2/Server/Plugins/Packages/Source.py
parente686de540cdc4c7ee7c802b2ddfd364c12e995e7 (diff)
downloadbcfg2-140e07dcfabe997161bd1ca957713b619c40b6cf.tar.gz
bcfg2-140e07dcfabe997161bd1ca957713b619c40b6cf.tar.bz2
bcfg2-140e07dcfabe997161bd1ca957713b619c40b6cf.zip
Packages: Read cache files using binary format
Signed-off-by: Sol Jerome <sol.jerome@gmail.com>
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Packages/Source.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Packages/Source.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
index 852049736..7ba374dd3 100644
--- a/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
+++ b/src/lib/Bcfg2/Server/Plugins/Packages/Source.py
@@ -315,7 +315,7 @@ class Source(Bcfg2.Server.Plugin.Debuggable): # pylint: disable=R0902
:raises: OSError - If the saved data cannot be read
:raises: cPickle.UnpicklingError - If the saved data is corrupt """
- data = open(self.cachefile)
+ data = open(self.cachefile, 'rb')
(self.pkgnames, self.deps, self.provides,
self.essentialpkgs) = cPickle.load(data)