From 4bb6172b0d683f67a9d186aa93b4b3ddecefbe1b Mon Sep 17 00:00:00 2001 From: willip Date: Mon, 25 Mar 2019 12:14:37 +0000 Subject: [PATCH] round up --- .gitignore | 1 + distributions.json | 2 +- quickos.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index c6f666b..d7e2daa 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Session.vim **/__pycache__/ *.py[cod] +dist/* diff --git a/distributions.json b/distributions.json index a446423..9b053d6 100644 --- a/distributions.json +++ b/distributions.json @@ -4,6 +4,6 @@ "file_name": "raspbian.zip", "file_url":"https://downloads.raspberrypi.org/raspbian_latest", "test_name":"raspbian_release-notes.txt", - "test_url":"http://downloads.raspberrypi.org/raspbian/release_notes.txt", + "test_url":"http://downloads.raspberrypi.org/raspbian/release_notes.txt" } } diff --git a/quickos.py b/quickos.py index 8c4eb5f..78ec685 100755 --- a/quickos.py +++ b/quickos.py @@ -49,7 +49,7 @@ must be specified, skipping {} ...'.format(name)) file_name = '{}/dist/{}'.format(WORKDIR, dist['file_name']) if not path.isfile(file_name): - prt('{} does not yet exist, downloading ...'.format(file_url)) + prt('{} does not yet exist, downloading ...'.format(dist['file_url'])) download(dist['file_url'], file_name) continue @@ -63,7 +63,7 @@ must be specified, skipping {} ...'.format(name)) prt('{} is older than {} days, checking test file ...'.format(name, file_age)) if not dist['test_url']: - prt('distributions.json: `test_url` not specified, downloading {} ...'.format(file_url)) + prt('distributions.json: `test_url` not specified, downloading {} ...'.format(dist['file_url'])) download(dist['file_url'], file_name) continue