skip architecture list patching in case if any architecture is set

This commit is contained in:
arcanis committed 2022-09-17 04:04:28 +03:00
1 parent 7e20ff5184
commit 75c6bf6119
2 files changed
+14

No files matched your search

+2
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)