!13 update to 0.030
From: @hongjinghao Reviewed-by: @overweight Signed-off-by: @overweight
This commit is contained in:
commit
9fd5bf21fa
@ -1,31 +0,0 @@
|
|||||||
From 33e0c0e1de3fdecb4a627eaa1662871e13e041d2 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Leon Timmermans <fawaka@gmail.com>
|
|
||||||
Date: Fri, 4 Feb 2022 13:29:58 +0100
|
|
||||||
Subject: [PATCH] Simplify the upgrade-to-next-stable logic
|
|
||||||
|
|
||||||
---
|
|
||||||
lib/experimental.pm | 8 ++------
|
|
||||||
1 file changed, 2 insertions(+), 6 deletions(-)
|
|
||||||
|
|
||||||
diff --git a/lib/experimental.pm b/lib/experimental.pm
|
|
||||||
index 41b3994..9fa4461 100644
|
|
||||||
--- a/lib/experimental.pm
|
|
||||||
+++ b/lib/experimental.pm
|
|
||||||
@@ -72,12 +72,8 @@ sub _enable {
|
|
||||||
croak "Can't enable unknown feature $pragma";
|
|
||||||
}
|
|
||||||
elsif ($] < $min_version{$pragma}) {
|
|
||||||
- my $stable = $min_version{$pragma};
|
|
||||||
- if ($stable->{version}[1] % 2) {
|
|
||||||
- $stable = version->new(
|
|
||||||
- "5.".($stable->{version}[1]+1).'.0'
|
|
||||||
- );
|
|
||||||
- }
|
|
||||||
+ my $stable = $min_version{$pragma}->stringify;
|
|
||||||
+ $stable =~ s/^ 5\. ([0-9]?[13579]) \. \d+ $/"5." . ($1 + 1) . ".0"/xe;
|
|
||||||
croak "Need perl $stable or later for feature $pragma";
|
|
||||||
}
|
|
||||||
elsif ($] >= ($removed_in_version{$pragma} || 7)) {
|
|
||||||
--
|
|
||||||
2.33.0
|
|
||||||
|
|
||||||
Binary file not shown.
BIN
experimental-0.030.tar.gz
Normal file
BIN
experimental-0.030.tar.gz
Normal file
Binary file not shown.
@ -1,13 +1,11 @@
|
|||||||
Name: perl-experimental
|
Name: perl-experimental
|
||||||
Version: 0.025
|
Version: 0.030
|
||||||
Release: 2
|
Release: 1
|
||||||
Summary: Experimental features made easy
|
Summary: Experimental features made easy
|
||||||
License: GPL+ or Artistic
|
License: GPL+ or Artistic
|
||||||
URL: http://search.cpan.org/dist/experimental/
|
URL: http://search.cpan.org/dist/experimental/
|
||||||
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz
|
Source0: http://www.cpan.org/authors/id/L/LE/LEONT/experimental-%{version}.tar.gz
|
||||||
|
|
||||||
Patch0001: backport-Simplify-the-upgrade-to-next-stable-logic.patch
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: make perl-generators perl-interpreter
|
BuildRequires: make perl-generators perl-interpreter
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
|
||||||
@ -53,6 +51,9 @@ make test
|
|||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Jan 29 2023 hongjinghao <hongjinghao@huawei.com> - 0.030-1
|
||||||
|
- update to 0.030
|
||||||
|
|
||||||
* Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 0.025-2
|
* Mon Oct 24 2022 hongjinghao <hongjinghao@huawei.com> - 0.025-2
|
||||||
- Simplify code's logic
|
- Simplify code's logic
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user