From 971187e54c4d23024c7264d2c1ccbb6c4aac83b0 Mon Sep 17 00:00:00 2001 From: Indrajit Raychaudhuri Date: Sun, 9 Apr 2017 04:21:55 -0500 Subject: [PATCH] pacman: Fix package matching pattern in upgraded package list (#23433) (cherry picked from commit 9a850db605a2db3c4f7f1cbc5bf88a8852ea17c4) --- lib/ansible/modules/packaging/os/pacman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/packaging/os/pacman.py b/lib/ansible/modules/packaging/os/pacman.py index f573803f01..787781bb37 100644 --- a/lib/ansible/modules/packaging/os/pacman.py +++ b/lib/ansible/modules/packaging/os/pacman.py @@ -211,7 +211,7 @@ def upgrade(module, pacman_path): } if rc == 0: - regex = re.compile('(\w+) ((?:\S+)-(?:\S+)) -> ((?:\S+)-(?:\S+))') + regex = re.compile('([\w-]+) ((?:\S+)-(?:\S+)) -> ((?:\S+)-(?:\S+))') b = [] a = [] for p in data: