Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Menu
Open sidebar
librespacefoundation
SatNOGS
satnogs-config
Commits
3e0c3142
Commit
3e0c3142
authored
Apr 22, 2021
by
Vasilis Tsiligiannis
Browse files
apt: Catch and ignore fetch failure exception
Signed-off-by:
Vasilis Tsiligiannis
<
acinonyx@openwrt.gr
>
parent
3ddb06c1
Pipeline
#291992611
passed with stages
in 1 minute and 49 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
satnogsconfig/helpers/apt.py
View file @
3e0c3142
...
...
@@ -13,7 +13,10 @@ def has_updates():
:rtype: bool
"""
cache
=
apt
.
Cache
()
cache
.
update
()
try
:
cache
.
update
()
except
apt
.
cache
.
FetchFailedException
:
pass
cache
.
open
(
None
)
cache
.
upgrade
(
dist_upgrade
=
True
)
if
cache
.
get_changes
():
...
...
Vasilis Tsiligiannis
@acinonyx
mentioned in issue
#32 (closed)
·
May 10, 2021
mentioned in issue
#32 (closed)
mentioned in issue #32
Toggle commit list
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