Unverified Commit e26c7bb0 authored by Massimiliano Adamo's avatar Massimiliano Adamo
Browse files

warn only if cache update fails

parent 45f95ed1
......@@ -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
......
Markdown is supported
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