gather: Nodeps should allow noarch packages

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ář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2017-10-16 10:47:07 +02:00
parent bb6c5da7af
commit b79ff7d8dd
1 changed files with 1 additions and 1 deletions

View File

@ -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,