tb: Remove packages by removing their contents
This commit is contained in:
parent
c9e23b8941
commit
acff5093b0
@ -340,8 +340,12 @@ class TemplateRunner(object):
|
||||
self.yum.install(pattern=p)
|
||||
|
||||
def removepkg(self, *pkgs):
|
||||
for p in pkgs:
|
||||
self.yum.remove(pattern=p)
|
||||
#for p in pkgs:
|
||||
# self.yum.remove(pattern=p)
|
||||
pkglist = self.yum.doPackageLists(pkgnarrow="installed", patterns=[pkg])
|
||||
for pkg in pkglist.installed:
|
||||
filepaths = [f.lstrip('/') for f in pkg.filelist]
|
||||
self.remove(*filepaths)
|
||||
|
||||
def run_pkg_transaction(self, *args):
|
||||
if '--noscripts' in args:
|
||||
|
Loading…
Reference in New Issue
Block a user