]> git.vpit.fr Git - perl/modules/re-engine-Hooks.git/commitdiff
Teach the update script to skip outdated dev releases
authorVincent Pit <vince@profvince.com>
Tue, 6 Aug 2013 04:08:38 +0000 (01:08 -0300)
committerVincent Pit <vince@profvince.com>
Tue, 6 Aug 2013 04:08:38 +0000 (01:08 -0300)
src/update.pl

index 63d3bff9abe6036f119c8d91898f28b55c71ec28..b5eae47e3dbdc64f7f9d1ae380eff52028789b6b 100644 (file)
@@ -96,8 +96,22 @@ sub key_version {
  "$int$frac" => [ $num_version, $pretty_version ];
 }
 
+my $latest_dev_rev = 19;
+
+sub perl_is_supported {
+ my $v = "$_[0]";
+
+ return unless $v >= '5.010001';
+
+ if ($v =~ /^5\.([0-9]{2}[13579])/) {
+  return $1 >= $latest_dev_rev;
+ }
+
+ return 1;
+}
+
 my %perls = map key_version($_),
-             grep "$_" >= '5.010001',
+             grep perl_is_supported($_),
               keys %Module::CoreList::released;
 
 {