diff options
| author | Michael E Brown <mebrown@michaels-house.net> | 2008-01-08 15:54:54 -0600 |
|---|---|---|
| committer | Michael E Brown <mebrown@michaels-house.net> | 2008-01-08 15:54:54 -0600 |
| commit | 89fae160c04d3a84d3aa833a8a33fd39b7519dd1 (patch) | |
| tree | f85bd5201ec6591a835b67c832aebe617652b060 /py/mock/plugins | |
| parent | 8585acd974206ebb8a0ad14f42cefb2096cadd6f (diff) | |
| download | mock-89fae160c04d3a84d3aa833a8a33fd39b7519dd1.tar.gz mock-89fae160c04d3a84d3aa833a8a33fd39b7519dd1.tar.xz mock-89fae160c04d3a84d3aa833a8a33fd39b7519dd1.zip | |
cleanup trailing whitespace.
Diffstat (limited to 'py/mock/plugins')
| -rw-r--r-- | py/mock/plugins/tmpfs.py | 6 | ||||
| -rw-r--r-- | py/mock/plugins/yum_cache.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/py/mock/plugins/tmpfs.py b/py/mock/plugins/tmpfs.py index 4896d26..b3f2d07 100644 --- a/py/mock/plugins/tmpfs.py +++ b/py/mock/plugins/tmpfs.py @@ -22,8 +22,8 @@ def init(rootObj, conf): else: getLog().warning("Tmpfs plugin disabled. " "System does not have the required amount of RAM to enable the tmpfs plugin. " - "System has %sMB RAM, but the config specifies the minimum required is %sMB RAM. " - % + "System has %sMB RAM, but the config specifies the minimum required is %sMB RAM. " + % (system_ram_mb, conf['required_ram_mb'])) # classes @@ -48,5 +48,5 @@ class Tmpfs(object): getLog().info("unmounting tmpfs.") mountCmd = "umount -n %s" % self.rootObj.makeChrootPath() mock.util.do(mountCmd) - + diff --git a/py/mock/plugins/yum_cache.py b/py/mock/plugins/yum_cache.py index bcdf465..2e12b3f 100644 --- a/py/mock/plugins/yum_cache.py +++ b/py/mock/plugins/yum_cache.py @@ -83,7 +83,7 @@ class YumCache(object): os.unlink(fullPath) fullPath = None break - + if fullPath is None: continue if file_age_days > self.yum_cache_opts['max_age_days']: os.unlink(fullPath) |
