mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-02 01:18:08 +01:00
Ensure that substituted files are equivalent to upstream
This commit is contained in:
parent
021574d2a9
commit
b80e1f6a57
5 changed files with 181 additions and 3 deletions
|
|
@ -274,7 +274,7 @@ When in doubt, try deleting the file in question -- it will be downloaded again
|
|||
this script the next time")
|
||||
|
||||
@staticmethod
|
||||
def download_file(url, directory, file_name):
|
||||
def download_file(url, directory, file_name, silent=False):
|
||||
"""
|
||||
Download a single source archive.
|
||||
"""
|
||||
|
|
@ -290,7 +290,8 @@ this script the next time")
|
|||
"User-Agent": "curl/7.88.1"
|
||||
}
|
||||
if not os.path.isfile(abs_file_name):
|
||||
print(f"Downloading: {file_name}")
|
||||
if not silent:
|
||||
print(f"Downloading: {file_name}")
|
||||
response = requests.get(url, allow_redirects=True, stream=True,
|
||||
headers=headers, timeout=20)
|
||||
if response.status_code == 200:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue