diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2007-01-11 16:31:59 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2007-01-11 16:31:59 +0000 |
commit | a3c565340fde4e811a6a7c8af0d71244c80cfed0 (patch) | |
tree | ffe9deed6a1895586605fe0b20efbf8eb0893c2f /src/lib/Client/Tools | |
parent | 4a02429e891163947d8d34934726376fd160440e (diff) | |
download | bcfg2-a3c565340fde4e811a6a7c8af0d71244c80cfed0.tar.gz bcfg2-a3c565340fde4e811a6a7c8af0d71244c80cfed0.tar.bz2 bcfg2-a3c565340fde4e811a6a7c8af0d71244c80cfed0.zip |
Add conflicts support for tool drivers
* Add Yum conflict with RPM
* Add Yum dependency on /var/lib/rpm
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2645 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools')
-rw-r--r-- | src/lib/Client/Tools/Yum.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/Client/Tools/Yum.py b/src/lib/Client/Tools/Yum.py index 62ccbffc4..641d30a30 100644 --- a/src/lib/Client/Tools/Yum.py +++ b/src/lib/Client/Tools/Yum.py @@ -1,15 +1,17 @@ # This is the bcfg2 support for yum '''This provides bcfg2 support for yum''' -__revision__ = '$Revision:$' +__revision__ = '$Revision$' import Bcfg2.Client.Tools.RPM +conflicts = ['RPM'] + class Yum(Bcfg2.Client.Tools.RPM.RPM): '''Support for Yum packages''' pkgtype = 'yum' pkgtool = ("/usr/bin/yum install %s", ("%s-%s", ["name", "version"])) __name__ = 'Yum' - __execs__ = ['/usr/bin/yum'] + __execs__ = ['/usr/bin/yum', '/var/lib/rpm'] __handles__ = [('Package', 'yum')] def RemovePackages(self, packages): |