[Reportbug-maint] Bug#878088: reportbug: please inform security and lts teams about security update regressions

Markus Koschany apo at debian.org
Wed Jan 24 18:37:44 UTC 2018



Am 24.01.2018 um 19:32 schrieb Nis Martensen:
> How about this?
> 
> import apt
> 
> def is_security_update(pkgname, version):
>     try:
>         p = apt.Cache()[pkgname]
>     except:
>         return False
> 
>     if version not in p.versions:
>         return False
> 
>     if 'Debian-Security' in [o.label for o in
>                     p.versions[version].origins]:
>         return True
>     return False

Thanks. How do you catch the case when security updates are part of a
stable point release?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/reportbug-maint/attachments/20180124/9a751ba0/attachment-0001.sig>


More information about the Reportbug-maint mailing list