summaryrefslogtreecommitdiffstats
path: root/src/lib/Client/Tools/YUMng.py
diff options
context:
space:
mode:
authorFabian Affolter <fabian@bernewireless.net>2010-06-07 13:23:13 +0000
committerSol Jerome <solj@ices.utexas.edu>2010-06-07 08:42:53 -0500
commit97063d26e56b7dccf73ec548e82ccd101d8cbd83 (patch)
treea91bc7e585d2277061ce72d1ee92eb3b0598a212 /src/lib/Client/Tools/YUMng.py
parent7e63c759095bd90c6aff7b7ebcafe2535e27b7cd (diff)
downloadbcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.tar.gz
bcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.tar.bz2
bcfg2-97063d26e56b7dccf73ec548e82ccd101d8cbd83.zip
Updated files to match PEP 257
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib/Client/Tools/YUMng.py')
-rw-r--r--src/lib/Client/Tools/YUMng.py15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/Client/Tools/YUMng.py b/src/lib/Client/Tools/YUMng.py
index 9faeb3328..2078a5126 100644
--- a/src/lib/Client/Tools/YUMng.py
+++ b/src/lib/Client/Tools/YUMng.py
@@ -1,4 +1,4 @@
-'''This provides bcfg2 support for yum'''
+"""This provides bcfg2 support for yum."""
__revision__ = '$Revision: $'
import ConfigParser
@@ -31,7 +31,7 @@ if not hasattr(Bcfg2.Client.Tools.RPMng, 'RPMng'):
raise ImportError
def build_yname(pkgname, inst):
- '''build yum appropriate package name'''
+ """Build yum appropriate package name."""
ypname = pkgname
if inst.get('version') != 'any':
ypname += '-'
@@ -46,7 +46,7 @@ def build_yname(pkgname, inst):
return ypname
class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
- '''Support for Yum packages'''
+ """Support for Yum packages."""
pkgtype = 'yum'
name = 'YUMng'
@@ -148,7 +148,7 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
modlist)
def Install(self, packages, states):
- '''
+ """
Try and fix everything that RPMng.VerifyPackages() found wrong for
each Package Entry. This can result in individual RPMs being
installed (for the first time), deleted, downgraded
@@ -167,7 +167,8 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
of a package.
- Each package will be added to self.modified[] if its states{}
entry is set to True.
- '''
+
+ """
self.logger.info('Running YUMng.Install()')
install_pkgs = []
@@ -315,12 +316,12 @@ class YUMng(Bcfg2.Client.Tools.RPMng.RPMng):
self.modified.append(entry)
def RemovePackages(self, packages):
- '''
+ """
Remove specified entries.
packages is a list of Package Entries with Instances generated
by FindExtraPackages().
- '''
+ """
self.logger.debug('Running YUMng.RemovePackages()')
if YAD: