diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2005-09-13 15:55:38 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2005-09-13 15:55:38 +0000 |
commit | c88929f6cfd0d73af17567c908d4ed055128f749 (patch) | |
tree | 774ea00494f5a9d052f8902d84659dd709cc5273 /src/lib/Client/Redhat.py | |
parent | 1a8e946fb4b0e61eaff9b633dea61ca6ffa61fa2 (diff) | |
download | bcfg2-c88929f6cfd0d73af17567c908d4ed055128f749.tar.gz bcfg2-c88929f6cfd0d73af17567c908d4ed055128f749.tar.bz2 bcfg2-c88929f6cfd0d73af17567c908d4ed055128f749.zip |
add space
2005/09/13 10:55:08-05:00 anl.gov!desai
version bump
(Logical change 1.310)
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@1266 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Redhat.py')
-rw-r--r-- | src/lib/Client/Redhat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/Client/Redhat.py b/src/lib/Client/Redhat.py index c14219e54..063ef9b48 100644 --- a/src/lib/Client/Redhat.py +++ b/src/lib/Client/Redhat.py @@ -17,7 +17,7 @@ class Redhat(Toolset): Toolset.__init__(self, cfg, setup) self.pkgwork = {'add':[], 'update':[], 'remove':[]} self.Refresh() - for pkg in [cpkg for cpkg in self.cfg.finall(".//Package") if not cpkg.attrib.has_key('type')]: + for pkg in [cpkg for cpkg in self.cfg.findall(".//Package") if not cpkg.attrib.has_key('type')]: pkg.set('type', 'rpm') for srv in [csrv for csrv in self.cfg.findall(".//Service") if not csrv.attrib.has_key('type')]: srv.set('type', 'chkconfig') @@ -25,7 +25,7 @@ class Redhat(Toolset): for pkg in [cpkg for cpkg in self.cfg.findall('.//Package') if cpkg.attrib.has_key('reloc')]: ptoolname = "rpm-reloc-%s" % (pkg.get('reloc')) if not self.pkgtool.has_key(ptoolname): - cmd = "rpm --relocate %s --oldpackage --replacepkgs --quiet -U %%s"%(pkg.get('reloc')) + cmd = "rpm --relocate %s --oldpackage --replacepkgs --quiet -U %%s" % (pkg.get('reloc')) self.pkgtool[ptoolname] = (cmd, ("%s", ["url"])) pkg.set('type', ptoolname) |