Package: dl10n
Severity: normal
Tags: patch

dl10n-check spits out many warning messages when used (for instance on :

dpkg: warning: --compare-versions used with obsolete relation operator

This is indeed quite easy to fix with the attached patch.

-- System Information:
Debian Release: 9.4
  APT prefers oldoldstable
  APT policy: (500, 'oldoldstable'), (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 4.9.0-6-686-pae (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), 
LANGUAGE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages dl10n depends on:
ii  gettext                 
ii  liblocale-gettext-perl            1.07-3+b1
ii  libmailtools-perl                 2.18-1
ii  libtimedate-perl                  2.3000-2
ii  libwww-perl                       6.15-1
ii  perl                              5.24.1-3+deb9u2
ii  perl-modules-5.24 [perl-modules]  5.24.1-3+deb9u2

dl10n recommends no packages.

dl10n suggests no packages.
diff --git a/dl10n-check b/dl10n-check
index 4bad7a1..7b6b0cf 100755
--- a/dl10n-check
+++ b/dl10n-check
@@ -281,7 +281,7 @@ PKG: while ($dsc = shift @pkg_list) {
                 $data->maintainer($pkg, $maint);
                 my $newer = ($data->version($pkg) ne $ver);
                 if ($newer) {
-                        $newer = system ("dpkg","--compare-versions", 
$data->version($pkg), "\>", $ver);
+                        $newer = system ("dpkg","--compare-versions", 
$data->version($pkg), "gt", $ver);
                 if ((!$force) && $newer==0 && $data->version($pkg) ne ""
                         && !( $force_material &&
Debian-l10n-devel mailing list

Reply via email to