summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-06-13 17:59:47 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-06-13 18:02:03 +0200
commit14e6a0510d7e93cafc724edfbab28910d0ee7ebe (patch)
treef6e22483c4de08c0324235a332f67d3a4aaf88dc
parent366559978df05dc00f4b1a6613f4bcf8c33cfed9 (diff)
downloadurpmi-14e6a0510d7e93cafc724edfbab28910d0ee7ebe.tar
urpmi-14e6a0510d7e93cafc724edfbab28910d0ee7ebe.tar.gz
urpmi-14e6a0510d7e93cafc724edfbab28910d0ee7ebe.tar.bz2
urpmi-14e6a0510d7e93cafc724edfbab28910d0ee7ebe.tar.xz
urpmi-14e6a0510d7e93cafc724edfbab28910d0ee7ebe.zip
fix running with perl-5.26 (mga#23172)
commit 6aaf7d1e438b9820164b94d3b548a858bb6abf68 was working smoothly 6 years ago but no more with perl-5.26
-rw-r--r--NEWS3
-rw-r--r--rpm-find-leaves3
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index a66558ef..5a7b8439 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,6 @@
+- urpmi_rpm-find-leaves
+ o fix running with perl-5.26 (mga#23172)
+
Version 8.111 - 19 September 2017
- gurpmi:
diff --git a/rpm-find-leaves b/rpm-find-leaves
index 87aabdbb..7d4adc37 100644
--- a/rpm-find-leaves
+++ b/rpm-find-leaves
@@ -23,7 +23,8 @@ where [options] are from
my $urpm = urpm->new;
-while (my $_ = shift) {
+local $_;
+while ($_ = shift) {
$_ eq '--root' and do {
my $root = shift;
$root and urpm::set_files($urpm, $root);