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:
parent
bb6c5da7af
commit
b79ff7d8dd
@ -59,7 +59,7 @@ class GatherMethodNodeps(pungi.phases.gather.method.GatherMethodBase):
|
|||||||
elif (type(gathered_pkg) in [SimpleRpmWrapper, RpmWrapper]
|
elif (type(gathered_pkg) in [SimpleRpmWrapper, RpmWrapper]
|
||||||
and pkg.nevra != gathered_pkg.nevra):
|
and pkg.nevra != gathered_pkg.nevra):
|
||||||
continue
|
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
|
continue
|
||||||
result["rpm"].append({
|
result["rpm"].append({
|
||||||
"path": pkg.file_path,
|
"path": pkg.file_path,
|
||||||
|
Loading…
Reference in New Issue
Block a user