diff options
author | Narayan Desai <desai@mcs.anl.gov> | 2009-11-11 23:26:35 +0000 |
---|---|---|
committer | Narayan Desai <desai@mcs.anl.gov> | 2009-11-11 23:26:35 +0000 |
commit | ed532871a4f4fa75d1b9e1c21d7cbfd1f26b97f2 (patch) | |
tree | 9fcc1a65d54c86ebffaf8148c7a5c225ee2b507c | |
parent | fbe20241d187ac38f2bde7e00b6d71a21b558e99 (diff) | |
download | bcfg2-ed532871a4f4fa75d1b9e1c21d7cbfd1f26b97f2.tar.gz bcfg2-ed532871a4f4fa75d1b9e1c21d7cbfd1f26b97f2.tar.bz2 bcfg2-ed532871a4f4fa75d1b9e1c21d7cbfd1f26b97f2.zip |
RPMng: supress prelink runs in dryrun mode (Resolves Ticket #794) [bugfix]
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5573 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r-- | src/lib/Client/Tools/RPMng.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Client/Tools/RPMng.py b/src/lib/Client/Tools/RPMng.py index b73a4ee73..b1f4c087e 100644 --- a/src/lib/Client/Tools/RPMng.py +++ b/src/lib/Client/Tools/RPMng.py @@ -123,7 +123,7 @@ class RPMng(Bcfg2.Client.Tools.PkgTool): self.logger.debug('version_fail_action = %s' % self.version_fail_action) # Force a re- prelink of all packages if prelink exists. # Many, if not most package verifies can be caused by out of date prelinking. - if os.path.isfile('/usr/sbin/prelink'): + if os.path.isfile('/usr/sbin/prelink') and not self.setup['dryrun']: cmdrc, output = self.cmd.run('/usr/sbin/prelink -a -mR') if cmdrc == 0: self.logger.debug('Pre-emptive prelink succeeded') |