summaryrefslogtreecommitdiff
path: root/lib/ansible/modules/packaging/os/pacman.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ansible/modules/packaging/os/pacman.py')
-rw-r--r--lib/ansible/modules/packaging/os/pacman.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/modules/packaging/os/pacman.py b/lib/ansible/modules/packaging/os/pacman.py
index 9562cb21ec..2cf8924dca 100644
--- a/lib/ansible/modules/packaging/os/pacman.py
+++ b/lib/ansible/modules/packaging/os/pacman.py
@@ -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)