summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSol Jerome <solj@ices.utexas.edu>2009-03-09 21:30:52 +0000
committerSol Jerome <solj@ices.utexas.edu>2009-03-09 21:30:52 +0000
commitda2d1e776fcadd33e0936918c8727b2bd7dfe647 (patch)
tree1002cfaf34ce8ce0d72987098ede1531bf6fae91
parentf827612576845b27548a3b7a1b14de01a27039d4 (diff)
downloadbcfg2-da2d1e776fcadd33e0936918c8727b2bd7dfe647.tar.gz
bcfg2-da2d1e776fcadd33e0936918c8727b2bd7dfe647.tar.bz2
bcfg2-da2d1e776fcadd33e0936918c8727b2bd7dfe647.zip
Raise exception when cached files do not exist
Signed-off-by: Sol Jerome <solj@ices.utexas.edu> git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5116 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Packages.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py
index ca198702c..1246c35cf 100644
--- a/src/lib/Server/Plugins/Packages.py
+++ b/src/lib/Server/Plugins/Packages.py
@@ -51,6 +51,7 @@ class APTSource(object):
reader = gzip.GzipFile(fname)
except:
print "failed to read file %s" % fname
+ raise Exception()
continue
for line in reader.readlines():
words = line.strip().split(':', 1)