Coding style.

- More linting.
This commit is contained in:
Andrew Hamilton 2019-12-05 00:52:59 +10:00
parent 4a2f99d795
commit d645f62b10

View file

@ -113,8 +113,8 @@ def python_modules(package):
package], text=True)
sources = []
for line in output.splitlines():
if (line.startswith(" Downloading") or
line.startswith(" Using cached")):
if line.startswith(" Downloading") or \
line.startswith(" Using cached"):
url = line.split()[-1]
archive_path = os.path.join(temp_dir, os.path.basename(url))
sources.append((url, get_file_sha256(archive_path)))
@ -132,7 +132,8 @@ def python_modules(package):
def go_repo_source(repo_path):
current_commit = subprocess.check_output(["git", "rev-parse", "HEAD"],
cwd=repo_path, text=True).strip()
remote_url = subprocess.check_output(["git", "remote", "get-url", "origin"],
remote_url = subprocess.check_output(
["git", "remote", "get-url", "origin"],
cwd=repo_path, text=True).strip()
dest_path = repo_path[repo_path.rfind("src/"):]
return {"type": "git", "url": remote_url, "commit": current_commit,
@ -208,7 +209,8 @@ patches = {
"ghc": {"buildsystem": "simple",
"build-commands": [
"mkdir -p /app/lib",
"ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 /app/lib/libtinfo.so.5",
"ln -s /usr/lib/x86_64-linux-gnu/libtinfo.so.6 "
"/app/lib/libtinfo.so.5",
"./configure --prefix=/app",
"make install"],
"sources": [{
@ -288,8 +290,10 @@ patches = {
],
"sources": [{
"type": "archive",
"url": "https://rakudostar.com/files/star/rakudo-star-2019.03.tar.gz",
"sha256": "640a69de3a2b4f6c49e75a01040e8770de3650ea1d5bb61057e3dfa3c79cc008"}]},
"url": "https://rakudostar.com/files/star/"
"rakudo-star-2019.03.tar.gz",
"sha256": "640a69de3a2b4f6c49e75a01040e8770"
"de3650ea1d5bb61057e3dfa3c79cc008"}]},
"p7zip": {"buildsystem": "simple",
"build-commands": [
@ -403,7 +407,7 @@ def eris_modules():
def nodejs_modules():
return [{"name": "nodejs",
"cleanup": ["/include", "/share", "/lib/node_modules",],
"cleanup": ["/include", "/share", "/lib/node_modules"],
"sources": [
{"type": "archive",
"url": "https://nodejs.org/dist/v9.9.0/node-v9.9.0.tar.gz",