Support pacman packages using different types of compression (#19503)
It's possible to compress packages using several different compression methods, or not compressed at all. Previously, the pacman module only supported files compressed using xz. This update ensures that all compression types currently supported by pacman are supported by the ansible pacman module. The list of supported compression methods at the time of writing can be found here: https://git.archlinux.org/pacman.git/tree/scripts/makepkg.sh.in#n747
This commit is contained in:
parent
87c0c33241
commit
c58461596a
1 changed files with 1 additions and 1 deletions
|
@ -348,7 +348,7 @@ def main():
|
|||
|
||||
pkg_files = []
|
||||
for i, pkg in enumerate(pkgs):
|
||||
if pkg.endswith('.pkg.tar.xz'):
|
||||
if re.match(".*\.pkg\.tar(\.(gz|bz2|xz|lrz|lzo|Z))?$", pkg):
|
||||
# The package given is a filename, extract the raw pkg name from
|
||||
# it and store the filename
|
||||
pkg_files.append(pkg)
|
||||
|
|
Loading…
Reference in a new issue