Fix armhf version issue (#9382)

Why I did it
Fix some of the version files not used issue.
One of example version file version-py3-all-armhf, when building marvell-armhf, the version is used as expected, but it not use.
This commit is contained in:
xumia 2021-12-01 07:35:07 +08:00 committed by Qi Luo
parent 933454dc29
commit 1e8fe7dd6c

View File

@ -280,11 +280,11 @@ class VersionModule:
arch = ''
if len(items) > 2:
dist = items[2]
if filter_dist and dist and filter_dist != dist:
if filter_dist and dist and filter_dist != dist and dist != ALL_DIST:
continue
if len(items) > 3:
arch = items[3]
if filter_arch and arch and filter_arch != arch:
if filter_arch and arch and filter_arch != arch and arch != ALL_ARCH:
continue
versions = Component.get_versions(file_path)
component = Component(versions, ctype, dist, arch)