Skip to content
Snippets Groups Projects
Unverified Commit e26c7bb0 authored by Max Adamo's avatar Max Adamo
Browse files

warn only if cache update fails

parent 45f95ed1
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,10 @@ def process_packages(version_number, prefix, execution_type):
for suffix in KERNEL_SUFFIXES:
pkg = "{}-{}{}".format(prefix, version_number, suffix)
if execution_type == 'real':
CACHE.update()
try:
CACHE.update()
except apt.cache.FetchFailedException as err:
print("failed to fetch some repository: {}".format(err))
CACHE.open()
try:
CACHE[pkg].is_installed # maybe the package does not exist
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment