Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Oskar Roesler
ros-aur-helpers
Commits
c3154c54
Verified
Commit
c3154c54
authored
Dec 06, 2020
by
Oskar Roesler
Browse files
Provide URL for debugging if download of a release tarball failed in update.py
parent
09b43655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
aurci/update.py
aurci/update.py
+1
-1
No files found.
aurci/update.py
View file @
c3154c54
...
...
@@ -57,7 +57,7 @@ class Update(Routines):
try
:
urllib
.
request
.
urlretrieve
(
self
.
package_info
[
'dl'
],
fname
)
except
urllib
.
error
.
HTTPError
:
raise
RuntimeError
(
'download failed: {}'
.
format
(
self
.
package
))
raise
RuntimeError
(
'download failed:
{}, URL:
{}'
.
format
(
self
.
package
,
self
.
package_info
[
'dl'
]
))
sha256
=
subprocess
.
run
([
'sha256sum'
,
fname
],
check
=
True
,
capture_output
=
True
)
new_sha
=
"sha256sums=('{}'"
.
format
(
sha256
.
stdout
.
decode
(
'utf-8'
).
split
(
' '
)[
0
])
...
...
Write
Preview
Markdown
is supported
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