Commit 3e0c3142 authored by Vasilis Tsiligiannis's avatar Vasilis Tsiligiannis
Browse files

apt: Catch and ignore fetch failure exception


Signed-off-by: Vasilis Tsiligiannis's avatarVasilis Tsiligiannis <acinonyx@openwrt.gr>
parent 3ddb06c1
Pipeline #291992611 passed with stages
in 1 minute and 49 seconds
......@@ -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():
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment