This commit is contained in:
willip 2019-03-25 12:14:37 +00:00
parent db67f633ff
commit 4bb6172b0d
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
Session.vim
**/__pycache__/
*.py[cod]
dist/*

View File

@ -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"
}
}

View File

@ -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