Revert "add --noscripts to run_pkg_transaction, use it in cleanup"

Doesn't help. Less code is better.

This reverts commit c9e23b8941.
This commit is contained in:
Will Woods 2011-05-27 15:24:07 -04:00
parent acff5093b0
commit 76ecff7bf9
2 changed files with 2 additions and 4 deletions

View File

@ -180,7 +180,7 @@ removepkg xorg-x11-xauth
removepkg xorg-x11-xinit
removepkg yajl
removepkg yum-utils
run_pkg_transaction --noscripts
run_pkg_transaction
## other removals
remove /usr/share/doc

View File

@ -347,9 +347,7 @@ class TemplateRunner(object):
filepaths = [f.lstrip('/') for f in pkg.filelist]
self.remove(*filepaths)
def run_pkg_transaction(self, *args):
if '--noscripts' in args:
self.yum.conf.tsflags.append("noscripts")
def run_pkg_transaction(self):
self.yum.buildTransaction()
self.yum.repos.setProgressBar(LoraxDownloadCallback())
self.yum.processTransaction(callback=LoraxTransactionCallback(),