[Debian-l10n-devel] Bug#895689: dl10n-check uses an obsolete version comparison ooperator with "dpkg --compare-versions"
Christian Perrier
bubulle at debian.org
Sat Apr 14 17:54:48 BST 2018
Package: dl10n
Severity: normal
Tags: patch
dl10n-check spits out many warning messages when used (for instance on
i18n.debian.org) :
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 0.19.8.1-2
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.
-------------- next part --------------
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 &&
More information about the Debian-l10n-devel
mailing list