From 97063d26e56b7dccf73ec548e82ccd101d8cbd83 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 7 Jun 2010 13:23:13 +0000 Subject: Updated files to match PEP 257 git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5897 ce84e21b-d406-0410-9b95-82705330c041 --- src/lib/Client/Tools/YUMng.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/lib/Client/Tools/YUMng.py') 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: -- cgit v1.2.3-1-g7c22