From f7944a406e5165f18a2ea2b4dac717a473dd2152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Tue, 21 Apr 2020 09:44:27 +0200 Subject: [PATCH] gather: Fix nodeps method to not prefix match MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the input packages contain e.g. `ansible`, and there's `ansible-runner-service` in the package set, we don't want to pull it in. JIRA: RHELCMP-446 Signed-off-by: Lubomír Sedlář --- pungi/phases/gather/methods/method_nodeps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pungi/phases/gather/methods/method_nodeps.py b/pungi/phases/gather/methods/method_nodeps.py index 61ca40ff..cd625047 100644 --- a/pungi/phases/gather/methods/method_nodeps.py +++ b/pungi/phases/gather/methods/method_nodeps.py @@ -79,7 +79,8 @@ class GatherMethodNodeps(pungi.phases.gather.method.GatherMethodBase): if isinstance(gathered_pkg, six.string_types) and not re.match( gathered_pkg.replace(".", "\\.") .replace("+", "\\+") - .replace("*", ".*"), + .replace("*", ".*") + + "$", pkg.name, ): continue