there might be cache entries that are not install candidates, add another
condition to the guard. one example would be repositories that are pinned with
a negative priority.
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
except:
pass
pkg = aptc.get(f'librust-{_crate}-dev')
- if pkg is not None and (ver == '*' or pkg.candidate.version.startswith(ver)):
+ if pkg is not None and pkg.candidate is not None and (ver == '*' or pkg.candidate.version.startswith(ver)):
built.append((crate, pkg.candidate.version, 'apt'))
continue
if ver == '*':