diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-01-21 03:07:07 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-01-21 03:07:07 +0000 |
commit | df0d516ce79bba0b12774b101b84a83df751d08e (patch) | |
tree | 23740e3697ae2d18f8cc95f1217a461d41131aad /src | |
parent | 3bcf91228018e73a6ab89c31925ad605e71573cf (diff) | |
download | bcfg2-df0d516ce79bba0b12774b101b84a83df751d08e.tar.gz bcfg2-df0d516ce79bba0b12774b101b84a83df751d08e.tar.bz2 bcfg2-df0d516ce79bba0b12774b101b84a83df751d08e.zip |
more error handling for Packages
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5030 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/Server/Plugins/Packages.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/Server/Plugins/Packages.py b/src/lib/Server/Plugins/Packages.py index e136d71ff..5e9724724 100644 --- a/src/lib/Server/Plugins/Packages.py +++ b/src/lib/Server/Plugins/Packages.py @@ -108,7 +108,11 @@ class Packages(Bcfg2.Server.Plugin.Plugin, for s in xdata.findall('APTSource'): self.sources.append(APTSource(cachepath, **apt_source_from_xml(s))) for source in self.sources: - source.read_files() + try: + source.read_files() + except: + source.update() + source.read_files() self.pkgmap = dict() def find_deps(self, metadata, pkgname): |