Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Sympa
Commits
fa1d06b1
Commit
fa1d06b1
authored
Jul 01, 2018
by
IKEDA Soji
Browse files
Adding minimum version of Perl to cpanfile.
parent
8d6f92de
Changes
2
Hide whitespace changes
Inline
Side-by-side
cpanfile
View file @
fa1d06b1
### Requirements
##
# Minimum version of Perl required.
# Notation suggested on https://metacpan.org/pod/Carton#PERL-VERSIONS
requires 'perl', '5.8.1';
# This module provides zip/unzip for archive and shared document download/upload
requires 'Archive::Zip', '>= 1.05';
...
...
src/sbin/sympa_wizard.pl.in
View file @
fa1d06b1
...
...
@@ -490,14 +490,15 @@ Press the Enter key to continue..."
### REQ perl version
print
"
\n
"
.
gettext
('
Checking for PERL version:
')
.
"
\n\n
";
my
$rpv
=
$cpan_modules
{"
perl
"}{'
required_version
'};
if
(
$]
>=
$cpan_modules
{"
perl
"}{'
required_version
'})
{
# Compat. for perl < 5.10: $^V is not an object but a vector of integers.
my
$rpv
=
eval
'
v
'
.
$cpan_modules
{"
perl
"}{'
required_version
'}
or
die
$@
;
if
(
$
^
V
ge
$rpv
)
{
printf
gettext
('
Your version of perl is OK (%s >= %s)
')
.
"
\n
",
$]
,
$
rpv
;
$
cpan_modules
{"
perl
"}{'
required_version
'}
;
}
else
{
printf
gettext
(
"
Your version of perl is TOO OLD (%s < %s)
\n
Please INSTALL a new one !
"
)
.
"
\n
",
$]
,
$
rpv
;
)
.
"
\n
",
$]
,
$
cpan_modules
{"
perl
"}{'
required_version
'}
;
}
print
"
\n
"
.
gettext
('
Checking for REQUIRED modules:
')
.
"
\n\n
";
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment