mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
add fnmatch() support for apt remove too (just like install)
This commit is contained in:
parent
85d8587cc0
commit
559de5c65e
1 changed files with 1 additions and 0 deletions
|
@ -267,6 +267,7 @@ def install(m, pkgspec, cache, upgrade=False, default_release=None,
|
||||||
def remove(m, pkgspec, cache, purge=False,
|
def remove(m, pkgspec, cache, purge=False,
|
||||||
dpkg_options=expand_dpkg_options(DPKG_OPTIONS)):
|
dpkg_options=expand_dpkg_options(DPKG_OPTIONS)):
|
||||||
packages = ""
|
packages = ""
|
||||||
|
pkgspec = expand_pkgspec_from_fnmatches(m, pkgspec, cache)
|
||||||
for package in pkgspec:
|
for package in pkgspec:
|
||||||
name, version = package_split(package)
|
name, version = package_split(package)
|
||||||
installed, upgradable, has_files = package_status(m, name, version, cache, state='remove')
|
installed, upgradable, has_files = package_status(m, name, version, cache, state='remove')
|
||||||
|
|
Loading…
Reference in a new issue