add --noscripts to run_pkg_transaction, use it in cleanup
This commit is contained in:
parent
66e8d5d1f8
commit
c9e23b8941
@ -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
|
||||
|
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user