Re: cppi: i18n.debian.org: source does not specify a priority

Simon Josefsson <[email protected]> Sat, 03 Jan 2026 12:06:18 +0100
Newsgroups gmane.linux.debian.internationalization.general
Message-ID <[email protected]>
--==-=-=
Content-Type: multipart/mixed; boundary="=-=-="

--=-=-=
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Thanks to textshell on IRC who found the relevant code, which allowed me
to create a patch to solve the problem below:

https://salsa.debian.org/l10n-team/dl10n/-/merge_requests/11

What is the best way to submit a proper bug report and patch?  For some
reason it seems the 'dl10n' package is not in Debian?!  Where should bug
reports go?

https://tracker.debian.org/pkg/dl10n

I'm attaching the patch for easier email-based review.

/Simon

Simon Josefsson <[email protected]> writes:

> Hi!
>
> I dropped the 'Priority: optional' field from the debian/control Source
> stanza for 'cppi' in the last upload, and now i18n.debian.org says I
> have an error in my *.po files?!
>
> https://i18n.debian.org/l10n-pkg-status/c/cppi.html
>
>  The following errors were found in cppi 's PO files:
>
>  source does not specify a priority
>=20=20=20=20=20=20=20
>
> Any ideas?
>
> /Simon
>

--=-=-=
Content-Type: text/x-diff
Content-Disposition: inline;
 filename=0001-Let-missing-Priority-field-mean-optional.patch
Content-Transfer-Encoding: quoted-printable

From=2028670fc27f2f268dd47c89a76559f3778c1d9daf Mon Sep 17 00:00:00 2001
From: Simon Josefsson <[email protected]>
Date: Sat, 3 Jan 2026 11:44:09 +0100
Subject: [PATCH] Let missing Priority field mean optional

Debian Policy 4.7.3 was updated to allow Priority fields to be optional

https://www.debian.org/doc/debian-policy/ch-archive.html#s-priorities

Some improved wording are discussed but effect remains the same

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1124443
=2D--
 dl10n-check | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/dl10n-check b/dl10n-check
index 1bc4174..b0cbe0f 100755
=2D-- a/dl10n-check
+++ b/dl10n-check
@@ -472,6 +472,8 @@ sub parse_tarball {
         }
         if (exists $source->{Priority}) {
             $priority =3D $source->{Priority};
+        } else {
+            $priority =3D "optional";
         }
         if ($section eq "") {
                 $data->add_errors($pkg,"source does not specify a section\=
n");
@@ -487,10 +489,7 @@ sub parse_tarball {
                         $section  =3D "?";
                 }
         }
=2D        if ($priority eq "") {
=2D                $data->add_errors($pkg,"source does not specify a priori=
ty\n");
=2D                $priority  =3D "?";
=2D        } elsif (!exists($priorities{$priority})) {
+        if (!exists($priorities{$priority})) {
                 $data->add_errors($pkg,"'$priority' is not a valid priorit=
y\n");
                 $priority =3D "?";
         }
=2D-=20
2.52.0


--=-=-=--

--==-=-=
Content-Type: application/pgp-signature; name="signature.asc"

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

iQNoBAEWCgMQFiEEo8ychwudMQq61M8vUXIrCP5HRaIFAmlY+CoUHHNpbW9uQGpv
c2Vmc3Nvbi5vcmfCHCYAmDMEXJLOtBYJKwYBBAHaRw8BAQdACIcrZIvhrxDBkK9f
V+QlTmXxo2naObDuGtw58YaxlOu0JVNpbW9uIEpvc2Vmc3NvbiA8c2ltb25Aam9z
ZWZzc29uLm9yZz6IlgQTFggAPgIbAwULCQgHAgYVCAkKCwIEFgIDAQIeAQIXgBYh
BLHSvRN1vst4TPT4xNc89jjFPAa+BQJn0XQkBQkNZGbwAAoJENc89jjFPAa+BtIA
/iR73CfBurG9y8pASh3cbGOMHpDZfMAtosu6jbpO69GHAP4p7l57d+iVty2VQMsx
+3TCSAvZkpr4P/FuTzZ8JZe8BrgzBFySz4EWCSsGAQQB2kcPAQEHQOxTCIOaeXAx
I2hIX4HK9bQTpNVei708oNr1Klm8qCGKiPUEGBYIACYCGwIWIQSx0r0Tdb7LeEz0
+MTXPPY4xTwGvgUCZ9F0SgUJDWRmSQCBdiAEGRYIAB0WIQSjzJyHC50xCrrUzy9R
cisI/kdFogUCXJLPgQAKCRBRcisI/kdFoqdMAQCgH45aseZgIrwKOvUOA9QfsmeE
8GZHYNuFHmM9FEQS6AD6A4x5aYvoY6lo98pgtw2HPDhmcCXFItjXCrV4A0GmJA4J
ENc89jjF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