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 GitHub
parent 78de10713c
commit 8b333bea87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)