skip architecture list patching in case if any architecture is set

This commit is contained in:
2022-09-17 04:04:28 +03:00
parent 7e20ff5184
commit 75c6bf6119
2 changed files with 14 additions and 0 deletions

View File

@ -57,6 +57,8 @@ class Sources(LazyLogging):
return
architectures = Package.supported_architectures(sources_dir)
if "any" in architectures: # makepkg does not like when there is any other arch except for any
return
architectures.add(architecture)
patch = PkgbuildPatch("arch", list(architectures))
patch.write(pkgbuild_path)