Bug#890083: [PATCH] dl10n-check script: dpkg: warning: --compare-versions used with obsolete relation operator '>'

2018-04-14 Thread Christian PERRIER
Quoting Laura Arjona Reina (larj...@debian.org):
> Please ignore the former patch.
> 
> The correct patch is this one:

As we say in French : MDR:-)

There hasn't been as much activity on i18n infrastructure than today
during last months (if not years) and both of us report the same bug
with the same patch...:-)

I "git pulled" again





signature.asc
Description: PGP signature


Bug#890083: [PATCH] dl10n-check script: dpkg: warning: --compare-versions used with obsolete relation operator '>'

2018-04-14 Thread Laura Arjona Reina
Please ignore the former patch.

The correct patch is this one:

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 &&

(also attached)

Cheers
-- 
Laura Arjona Reina
https://wiki.debian.org/LauraArjona
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 &&