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:
parent
acff5093b0
commit
76ecff7bf9
@ -180,7 +180,7 @@ removepkg xorg-x11-xauth
|
|||||||
removepkg xorg-x11-xinit
|
removepkg xorg-x11-xinit
|
||||||
removepkg yajl
|
removepkg yajl
|
||||||
removepkg yum-utils
|
removepkg yum-utils
|
||||||
run_pkg_transaction --noscripts
|
run_pkg_transaction
|
||||||
|
|
||||||
## other removals
|
## other removals
|
||||||
remove /usr/share/doc
|
remove /usr/share/doc
|
||||||
|
@ -347,9 +347,7 @@ class TemplateRunner(object):
|
|||||||
filepaths = [f.lstrip('/') for f in pkg.filelist]
|
filepaths = [f.lstrip('/') for f in pkg.filelist]
|
||||||
self.remove(*filepaths)
|
self.remove(*filepaths)
|
||||||
|
|
||||||
def run_pkg_transaction(self, *args):
|
def run_pkg_transaction(self):
|
||||||
if '--noscripts' in args:
|
|
||||||
self.yum.conf.tsflags.append("noscripts")
|
|
||||||
self.yum.buildTransaction()
|
self.yum.buildTransaction()
|
||||||
self.yum.repos.setProgressBar(LoraxDownloadCallback())
|
self.yum.repos.setProgressBar(LoraxDownloadCallback())
|
||||||
self.yum.processTransaction(callback=LoraxTransactionCallback(),
|
self.yum.processTransaction(callback=LoraxTransactionCallback(),
|
||||||
|
Loading…
Reference in New Issue
Block a user