summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2018-09-19 08:31:18 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2018-09-20 01:08:04 +0200
commite7b4034e46a5056b6f064a4c2eea11f5c1251d19 (patch)
treee7e28069956a5954175560671d8aa7c08ed4184e
parent0ab84b27409f222ed3bd5f8caee684a3aecbef77 (diff)
downloadurpmi-e7b4034e46a5056b6f064a4c2eea11f5c1251d19.tar
urpmi-e7b4034e46a5056b6f064a4c2eea11f5c1251d19.tar.gz
urpmi-e7b4034e46a5056b6f064a4c2eea11f5c1251d19.tar.bz2
urpmi-e7b4034e46a5056b6f064a4c2eea11f5c1251d19.tar.xz
urpmi-e7b4034e46a5056b6f064a4c2eea11f5c1251d19.zip
fix running with perl < 5.22.0
-rwxr-xr-xMakefile.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 8cd7dadd..d4397fd7 100755
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -59,7 +59,7 @@ sub install {
# Take into account scripts in sbin under blib
# and new manpage sections
if ($inherited !~ s/"\$\(INST_BIN\)" "\$\(DESTINSTALL(\w*)BIN\)"/$& "\$(INST_SBIN)" "\$(DESTINSTALL$1SBIN)" "\$(INST_LIBEXEC)" "\$(DESTINSTALLLIBEXECDIR)" "\$(INST_MAN5DIR)" "\$(DESTINSTALLMAN5DIR)" "\$(INST_MAN8DIR)" "\$(DESTINSTALLMAN8DIR)"/g) {
- die "Could not replace INST_SBIN!";
+ die "Could not replace INST_SBIN!" if $] >= 5.022000;
}
# install files under /etc and /var
my $po = $with_po ? ' installpo' : '';