Removed
Link Here
|
1 |
--- inc/Module/AutoInstall.pm-old 2009-04-24 22:01:47.000000000 +0100 |
2 |
+++ inc/Module/AutoInstall.pm 2009-05-03 08:15:51.000000000 +0100 |
3 |
@@ -115,8 +115,6 @@ |
4 |
)[0] |
5 |
); |
6 |
|
7 |
- $UnderCPAN = _check_lock(1); # check for $UnderCPAN |
8 |
- |
9 |
while ( my ( $feature, $modules ) = splice( @args, 0, 2 ) ) { |
10 |
my ( @required, @tests, @skiptests ); |
11 |
my $default = 1; |
12 |
@@ -186,7 +184,6 @@ |
13 |
!$SkipInstall |
14 |
and ( |
15 |
$CheckOnly |
16 |
- or ($mandatory and $UnderCPAN) |
17 |
or _prompt( |
18 |
qq{==> Auto-install the } |
19 |
. ( @required / 2 ) |
20 |
@@ -217,6 +214,8 @@ |
21 |
} |
22 |
} |
23 |
|
24 |
+ $UnderCPAN = _check_lock(); # check for $UnderCPAN |
25 |
+ |
26 |
if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) { |
27 |
require Config; |
28 |
print |
29 |
@@ -238,7 +237,7 @@ |
30 |
# Check to see if we are currently running under CPAN.pm and/or CPANPLUS; |
31 |
# if we are, then we simply let it taking care of our dependencies |
32 |
sub _check_lock { |
33 |
- return unless @Missing or @_; |
34 |
+ return unless @Missing; |
35 |
|
36 |
if ($ENV{PERL5_CPANPLUS_IS_RUNNING}) { |
37 |
print <<'END_MESSAGE'; |
38 |
@@ -314,7 +313,7 @@ |
39 |
@modules = @newmod; |
40 |
} |
41 |
|
42 |
- if ( _has_cpanplus() and not $ENV{PERL_AUTOINSTALL_PREFER_CPAN} ) { |
43 |
+ if ( _has_cpanplus() ) { |
44 |
_install_cpanplus( \@modules, \@config ); |
45 |
} else { |
46 |
_install_cpan( \@modules, \@config ); |
47 |
@@ -707,7 +706,7 @@ |
48 |
if $Config; |
49 |
|
50 |
$PostambleActions = ( |
51 |
- ($missing and not $UnderCPAN) |
52 |
+ $missing |
53 |
? "\$(PERL) $0 --config=$config --installdeps=$missing" |
54 |
: "\$(NOECHO) \$(NOOP)" |
55 |
); |
56 |
@@ -747,7 +746,7 @@ |
57 |
sub postamble { |
58 |
$PostambleUsed = 1; |
59 |
|
60 |
- return <<"END_MAKE"; |
61 |
+ return << "."; |
62 |
|
63 |
config :: installdeps |
64 |
\t\$(NOECHO) \$(NOOP) |
65 |
@@ -758,7 +757,7 @@ |
66 |
installdeps :: |
67 |
\t$PostambleActions |
68 |
|
69 |
-END_MAKE |
70 |
+. |
71 |
|
72 |
} |
73 |
|
74 |
@@ -766,4 +765,4 @@ |
75 |
|
76 |
__END__ |
77 |
|
78 |
-#line 1004 |
79 |
+#line 1003 |