Control: fixed -1 1.13

Hi Gianluigi,

Gianluigi Tiesi <sher...@netfarm.it> ezt írta (időpont: 2019. aug.
11., V, 10:00):
>
> Package: unattended-upgrades
> Version: 1.11.2
> Severity: important
>
> I've just upgraded to buster and /usr/bin/unattended-upgrade now fails with 
> an error:
>
> Exception: 'NoneType' object has no attribute 'dependencies'
>
>
> the problem is in transitive_dependencies():
>
> for dep in pkg.candidate.dependencies:
>
>
> pkg.candidate is None when the package is systemd (uninstalled).
>
> I have /etc/apt/preferences.d/systemd as follow:
>
> Package: systemd
> Pin: release *
> Pin-Priority: -1
>
> version in stretch of the package was working fine
>
>
> I've added:
>
> if pkg.candidate is None:
>     return acc

Thanks, it is already fixed in almost the same way.

Cheers,
Balint

Reply via email to