mirror of
https://github.com/clearlinux/autospec.git
synced 2026-09-01 02:44:52 +00:00
Write only two archives per line to the Makefile
For increased readability, write only two archives per line to the Makefile, in the format: ARCHIVES := <url-source-1> <dest1> \ <url-source-2> <dest2> \ <url-source-3> <dest3> \ ...
This commit is contained in:
+3
-2
@@ -300,9 +300,10 @@ def download_tarball(url_argument, name_argument, archives, target_dir):
|
||||
with open(build.download_path + "/Makefile", "w") as file:
|
||||
file.write("PKG_NAME := " + name + "\n")
|
||||
file.write("URL := " + url_argument + "\n")
|
||||
file.write("ARCHIVES :=")
|
||||
sep = "ARCHIVES := "
|
||||
for archive in archives:
|
||||
file.write(" {}".format(archive))
|
||||
file.write("{}{}".format(sep, archive))
|
||||
sep = " " if sep != " " else " \\\n\t"
|
||||
file.write("\n")
|
||||
file.write("\n")
|
||||
file.write("include ../common/Makefile.common\n")
|
||||
|
||||
Reference in New Issue
Block a user