Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Hiro
GetTor
Commits
7496d112
Commit
7496d112
authored
Nov 21, 2019
by
Cecylia Bocovich
Browse files
Make sure script output clearly prints out errors
parent
f6ef9bbe
Changes
1
Hide whitespace changes
Inline
Side-by-side
scripts/update_files
View file @
7496d112
...
...
@@ -22,12 +22,12 @@ def upload_files(release):
for
asset
in
data
[
'downloads'
][
arch
][
locale
]:
url
=
data
[
'downloads'
][
arch
][
locale
][
asset
]
filename
=
url
.
split
(
'/'
)[
-
1
]
print
(
"Downloading "
+
filename
)
try
:
subprocess
.
check_call
([
"/usr/bin/wget"
,
"--quiet"
,
url
])
release
.
upload_asset
(
filename
)
except
:
print
(
"Error: failed to download "
+
url
)
print
(
"Please upload this file manually."
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment