Bug#1125967: libconfig-model-dpkg-perl: cme can add "Priority: optional"

gregor herrmann gregoa at debian.org
Mon Jan 19 16:44:54 GMT 2026


Package: libconfig-model-dpkg-perl
Version: 3.017
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

With the change in 3.017 to drop "Priority: optional" I found an 
interesting case:

Given the following situation: a debian/control file …
- - with Standards-Version: 4.7.2
- - without a Priority field (already removed when dpkg declared
  "optional" the default)

cme modify dpkg-control -save

will (reformat d/control if necessary and) add "Priority: optional" 
to it.

When I then call

cme modify dpkg-control source 'Standards-Version="4.7.3"'

the S-V is correctly bumped -- and "Priority: optional" is removed 
again.

(Commands taken from dpt-fixup in pkg-perl-tools.)

That's not really what I want, especially not with git commits after 
each change :)


I think I see the point of making the removal of Priority conditional 
on the Standards-Version; on the other hand:
- - AFAIR, `cme modify dpkg-control -save' has only reformatted
  d/control and never added/removed any fields; or I don't remember
  or I never hit such a situation;
- - I would also argue that "Priority: optional" was obsolete with dpkg 1.22.13
  (January 2025), it just took some time until this was written down
  in policy.


Not sure what the best way out is …


Cheers,
gregor


-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEE0eExbpOnYKgQTYX6uzpoAYZJqgYFAmluX4JfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEQx
RTEzMTZFOTNBNzYwQTgxMDREODVGQUJCM0E2ODAxODY0OUFBMDYACgkQuzpoAYZJ
qgaVrhAAoszbHb7cTmVCsa9m316qzZMM22y0egxBSoJb2w2nq00rvD/00Vh6OutS
aYloVfIDBhyaFyxDFWdYr6kAbK2p4Qhx1mHlCBUC6zHRDu60bAPBWkFAj8UZe+hT
65vItwXDVBhBsf8GtK/W1wYGShLVjdyE5SIYfcg1uwUHonTQOld88uI9clrMslTf
v5tJMcAIb+uP10Wuv7SAci9DStUSwKAag2fdRxFjDNwDvWP1KU4l4YHgz5rlWD2S
xFKqa/Hogzyww2zr68Xth0KIcg2yfPmq7MDRQlU2jb9QT/bmNInP2JsKQDZGYXIA
dphLJr9EPnYm8gX0XLIOYjSFTSTy9SbXNRfEk8tuGO7jTSqzy8O9mEmSN1PomNqK
FxM0rSwqd/TcyrEYNBtCrzSFEDfLsUjsdAQDY9a2po0Te8CLLrTHakirHGbU5g6d
9ZSIbfN9e5PRNPRR3E4QvIaXaPxZ4b7RZkjlC3XnSWMMlIMi6Nar5SORy8mno9Qr
MQzYyswzeyYd3dYRH+df21mHZv2NAVOr8NcgosxHgm3Yg4uCXdlpsTlICfbNGatn
qe2CbKFNr4OBol2SB7LxtAwf4mACslVcXDSIOL7s2NffrxeHto5Uxs7Yn5IyM2sh
76FmxoEA6tZnTiV3OKoQsODzprI6CQYJYl/vy/+Ts72eBoAp3aw=
=P5pY
-----END PGP SIGNATURE-----


More information about the pkg-perl-maintainers mailing list