aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Vignaud <thierry.vignaud@gmail.com>2022-04-26 11:39:20 +0200
committerThierry Vignaud <thierry.vignaud@gmail.com>2022-04-26 11:39:20 +0200
commit775e1ad51b6318b1a308be9b997accc470329282 (patch)
tree526af7529c063e220ede42de8980197dca84aae8
parent31f2f8eca5b8c3e06275f70d32aa36f500223f12 (diff)
downloadperl-URPM-775e1ad51b6318b1a308be9b997accc470329282.tar
perl-URPM-775e1ad51b6318b1a308be9b997accc470329282.tar.gz
perl-URPM-775e1ad51b6318b1a308be9b997accc470329282.tar.bz2
perl-URPM-775e1ad51b6318b1a308be9b997accc470329282.tar.xz
perl-URPM-775e1ad51b6318b1a308be9b997accc470329282.zip
Fix detecting 4.18-alpha1
-rw-r--r--Makefile.PL2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.PL b/Makefile.PL
index 04d9830..298465f 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -40,7 +40,7 @@ unless (eval { %cfg = ExtUtils::PkgConfig->find("rpm >= $build_reqs{rpm}"); 1 })
exit 0;
}
my @rpm_version = split /\./, $cfg{modversion};
-$cfg{modversion} =~ s/(?:-(?:beta|rc).*)?$//i;
+$cfg{modversion} =~ s/(?:-(?:alpha|beta|rc).*)?$//i;
open(my $FH, "> rpmversion.h") or die "Can't open rpmversion.h";
print $FH "/* File generated by Makefile.PL\n";
print $FH " */\n\n";