From b79ff7d8dd9b85523dd16cf4f69b7663b33f3118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Mon, 16 Oct 2017 10:47:07 +0200 Subject: [PATCH] gather: Nodeps should allow noarch packages MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit If the package name matches, we should take the package either if architecture matches or the package is noarch. Signed-off-by: Lubomír Sedlář --- pungi/phases/gather/methods/method_nodeps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/phases/gather/methods/method_nodeps.py b/pungi/phases/gather/methods/method_nodeps.py index c7dd8919..3d6148c4 100644 --- a/pungi/phases/gather/methods/method_nodeps.py +++ b/pungi/phases/gather/methods/method_nodeps.py @@ -59,7 +59,7 @@ class GatherMethodNodeps(pungi.phases.gather.method.GatherMethodBase): elif (type(gathered_pkg) in [SimpleRpmWrapper, RpmWrapper] and pkg.nevra != gathered_pkg.nevra): continue - if pkg_arch is not None and pkg.arch != pkg_arch: + if pkg_arch is not None and pkg.arch != pkg_arch and pkg.arch != 'noarch': continue result["rpm"].append({ "path": pkg.file_path,