round up
This commit is contained in:
parent
db67f633ff
commit
4bb6172b0d
1
.gitignore
vendored
1
.gitignore
vendored
@ -2,3 +2,4 @@
|
|||||||
Session.vim
|
Session.vim
|
||||||
**/__pycache__/
|
**/__pycache__/
|
||||||
*.py[cod]
|
*.py[cod]
|
||||||
|
dist/*
|
||||||
|
@ -4,6 +4,6 @@
|
|||||||
"file_name": "raspbian.zip",
|
"file_name": "raspbian.zip",
|
||||||
"file_url":"https://downloads.raspberrypi.org/raspbian_latest",
|
"file_url":"https://downloads.raspberrypi.org/raspbian_latest",
|
||||||
"test_name":"raspbian_release-notes.txt",
|
"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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -49,7 +49,7 @@ must be specified, skipping {} ...'.format(name))
|
|||||||
file_name = '{}/dist/{}'.format(WORKDIR, dist['file_name'])
|
file_name = '{}/dist/{}'.format(WORKDIR, dist['file_name'])
|
||||||
|
|
||||||
if not path.isfile(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)
|
download(dist['file_url'], file_name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ must be specified, skipping {} ...'.format(name))
|
|||||||
prt('{} is older than {} days, checking test file ...'.format(name, file_age))
|
prt('{} is older than {} days, checking test file ...'.format(name, file_age))
|
||||||
|
|
||||||
if not dist['test_url']:
|
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)
|
download(dist['file_url'], file_name)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user