add --noscripts to run_pkg_transaction, use it in cleanup

This commit is contained in:
Will Woods 2011-05-27 12:57:31 -04:00
parent 66e8d5d1f8
commit c9e23b8941
2 changed files with 4 additions and 2 deletions

View File

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

View File

@ -343,7 +343,9 @@ class TemplateRunner(object):
for p in pkgs:
self.yum.remove(pattern=p)
def run_pkg_transaction(self):
def run_pkg_transaction(self, *args):
if '--noscripts' in args:
self.yum.conf.tsflags.append("noscripts")
self.yum.buildTransaction()
self.yum.repos.setProgressBar(LoraxDownloadCallback())
self.yum.processTransaction(callback=LoraxTransactionCallback(),