summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 14:22:03 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 14:23:18 +0200
commitd544abfb415854477c99e511a354a8ccf60644b6 (patch)
tree5595a6c8af76ef0254c46d0748d7e03ab9c0c397
parent6da1400435434293b1d4761608ea87171015875b (diff)
downloadurpmi-d544abfb415854477c99e511a354a8ccf60644b6.tar
urpmi-d544abfb415854477c99e511a354a8ccf60644b6.tar.gz
urpmi-d544abfb415854477c99e511a354a8ccf60644b6.tar.bz2
urpmi-d544abfb415854477c99e511a354a8ccf60644b6.tar.xz
urpmi-d544abfb415854477c99e511a354a8ccf60644b6.zip
fix _rpm_version() when rpm is translated
-rw-r--r--NEWS3
-rw-r--r--urpm/select.pm2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 27ebe445..c22bedc5 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- library:
+ o fix _rpm_version() when rpm is translated
+
Version 8.114 - 17 September 2018
- enhanced doc
diff --git a/urpm/select.pm b/urpm/select.pm
index 6ba75390..9e16b0b8 100644
--- a/urpm/select.pm
+++ b/urpm/select.pm
@@ -718,7 +718,7 @@ sub translate_why_removed_one {
}
sub _libdb_version { $_[0] =~ /libdb-(\S+)\.so/ ? version->new("v$1") : () }
-sub _rpm_version() { `rpm --version` =~ /version ([0-9.]+)(?:-(beta|rc).*)?$/ ? version->new("v$1") : () }
+sub _rpm_version() { `LC_ALL=C rpm --version` =~ /version ([0-9.]+)(?:-(beta|rc).*)?$/ ? version->new("v$1") : () }
sub should_we_migrate_back_rpmdb_db_version {
my ($urpm, $state) = @_;