Bug#948575: About removing overrides with deprecated "extra" priority

2020-11-15 Thread s3v
Dear Maintainers,

please find attached a simple Python script to parse an override .gz file [1]
and create a text file containing only lines with 'extra' priority replaced by
'optional' one.
Example of usage:

  python3 overrides.py --filein override.sid.main.gz --fileout override.sid.main
 
If I understand correctly the code [2], this file needs to be passed to
'|dak control-overrides -C file'| for changing the priority for specified 
packages.
I'm not entirely sure about this procedure (I'm not sure at all, sincerely),
if I'm wrong, my apologizes for the noise. I've tried :(

Kind Regards

[1] http://ftp.debian.org/debian/indices/
[2] https://salsa.debian.org/ftp-team/dak/-/blob/master/dak/control_overrides.py



overrides.py.xz
Description: application/xz


Bug#948575: About removing overrides with deprecated "extra" priority

2020-01-10 Thread s3v
Package: ftp.debian.org
Severity: wishlist

Dear Maintainers,

Is there any block preventing removal of "extra" priority from
overrides?

e.g

  gnupg-utils extra utils

"extra" priority is deprecated as per Debian Policy [1]

   extra
    This priority is deprecated. Use the optional priority instead.
    This priority should be treated as equivalent to optional.

Please note that:

a) some packages declare "optional" priority (e.g. gnupg-utils) but "extra"
is given through overrides

b) some others packages still declare "extra" priority (catched by lintian [2])
and I think this behavior should be overridden.
There is a little disparity between overrides and lintian tag, but overrides 
take
higher priority [3].

Packages involved:

 $ grep 'Priority: extra' Packages | wc -l
 265
 $ grep -P '\textra\t' override.sid.main | wc -l
 265
 
Thanks for considering and kind regards.

[1]
https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities
[2]
https://lintian.debian.org/tags/priority-extra-is-replaced-by-priority-optional.html
[3]
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=929087