Bug#890083: dl10n-check script: dpkg: warning: --compare-versions used with obsolete relation operator '>'
Package: debian-i18n
Tags: patch
I'm attaching a diff that I think it solves the issue.
It simply changes '\>' for 'gt'
If nobody shouts I'll commit this in a while.
Cheers
--
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
diff --git a/dl10n-check b/dl10n-check
index 4bad7a1..a0b2d85 100755
--- a/dl10n-check
+++ b/dl10n-check
@@ -25,6 +25,7 @@ use Locale::Country;
use Debian::L10n::Db;
use Debian::L10n::Debconf;
+use lib './lib';
use Debian::Pkg::DebSrc;
my $progname= $0; $progname= $& if $progname =~ m,[^/]+$,;
@@ -281,7 +282,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 &&
Reply to: