From 9a850db605a2db3c4f7f1cbc5bf88a8852ea17c4 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) --- 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 083ac7138d6..4411402ee54 100644 --- a/lib/ansible/modules/packaging/os/pacman.py +++ b/lib/ansible/modules/packaging/os/pacman.py @@ -209,7 +209,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: