diff options
author | Andreas König <a.koenig@mind.de> | 2006-02-02 13:35:41 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2006-02-03 13:46:46 +0000 |
commit | 44d211041aaa1e1b93ed2c7ae6ca80132bb688b9 (patch) | |
tree | 79c9079f99aa720f65fecebfbedacb11a2445c0d /lib/CPAN | |
parent | 61743a657e259001276c08472bbb1a6b6b9febb4 (diff) | |
download | perl-44d211041aaa1e1b93ed2c7ae6ca80132bb688b9.tar.gz |
[PAUSE] CPAN Upload: A/AN/ANDK/CPAN-1.83_64.tar.gz
Message-ID: <87acda0z8y.fsf@k75.linux.bogus>
p4raw-id: //depot/perl@27062
Diffstat (limited to 'lib/CPAN')
-rw-r--r-- | lib/CPAN/FirstTime.pm | 19 | ||||
-rw-r--r-- | lib/CPAN/HandleConfig.pm | 24 | ||||
-rw-r--r-- | lib/CPAN/SIGNATURE | 28 |
3 files changed, 50 insertions, 21 deletions
diff --git a/lib/CPAN/FirstTime.pm b/lib/CPAN/FirstTime.pm index 269f8d1ec7..50843adb48 100644 --- a/lib/CPAN/FirstTime.pm +++ b/lib/CPAN/FirstTime.pm @@ -2,7 +2,7 @@ package CPAN::Mirrored::By; use strict; use vars qw($VERSION); -$VERSION = sprintf "%.2f", substr(q$Rev: 469 $,4)/100; +$VERSION = sprintf "%.2f", substr(q$Rev: 485 $,4)/100; sub new { my($self,@arg) = @_; @@ -21,7 +21,7 @@ use File::Basename (); use File::Path (); use File::Spec; use vars qw($VERSION); -$VERSION = sprintf "%.2f", substr(q$Rev: 469 $,4)/100; +$VERSION = sprintf "%.2f", substr(q$Rev: 485 $,4)/100; =head1 NAME @@ -324,8 +324,13 @@ Shall we use it as the general CPAN build and cache directory? my_dflt_prompt(make_arg => "", $matcher); - my_dflt_prompt(make_install_make_command => $CPAN::Config->{make} || "", - $matcher); + require CPAN::HandleConfig; + if (exists $CPAN::HandleConfig::keys{make_install_make_command}) { + # as long as Windows needs $self->_build_command, we cannot + # support sudo on windows :-) + my_dflt_prompt(make_install_make_command => $CPAN::Config->{make} || "", + $matcher); + } my_dflt_prompt(make_install_arg => $CPAN::Config->{make_arg} || "", $matcher); @@ -337,7 +342,11 @@ Shall we use it as the general CPAN build and cache directory? my_dflt_prompt(mbuild_arg => "", $matcher); - my_dflt_prompt(mbuild_install_build_command => "./Build", $matcher); + if (exists $CPAN::HandleConfig::keys{mbuild_install_build_command}) { + # as long as Windows needs $self->_build_command, we cannot + # support sudo on windows :-) + my_dflt_prompt(mbuild_install_build_command => "./Build", $matcher); + } my_dflt_prompt(mbuild_install_arg => "", $matcher); diff --git a/lib/CPAN/HandleConfig.pm b/lib/CPAN/HandleConfig.pm index e52a3b2693..669e3bb383 100644 --- a/lib/CPAN/HandleConfig.pm +++ b/lib/CPAN/HandleConfig.pm @@ -2,7 +2,7 @@ package CPAN::HandleConfig; use strict; use vars qw(%can %keys $dot_cpan $VERSION); -$VERSION = sprintf "%.2f", substr(q$Rev: 469 $,4)/100; +$VERSION = sprintf "%.2f", substr(q$Rev: 488 $,4)/100; %can = ( 'commit' => "Commit changes to disk", @@ -29,6 +29,19 @@ $VERSION = sprintf "%.2f", substr(q$Rev: 469 $,4)/100; unzip urllist wait_list wget ); +if ($^O eq "MSWin32") { + for my $k (qw( + mbuild_install_build_command + make_install_make_command + )) { + delete $keys{$k}; + if (exists $CPAN::Config->{$k}) { + $CPAN::Frontend->mywarn("deleting previously set config variable ". + "'$k' => '$CPAN::Config->{$k}'"); + delete $CPAN::Config->{$k}; + } + } +} # returns true on successful action sub edit { @@ -80,6 +93,7 @@ sub edit { } return $changed; } elsif ($o =~ /_hash$/) { + @args = () if @args==1 && $args[0] eq ""; push @args, "" if @args % 2; $CPAN::Config->{$o} = { @args }; } else { @@ -162,6 +176,11 @@ EOF $CPAN::Frontend->mydie("Couldn't open >$configpm: $!"); $fh->print(qq[$msg\$CPAN::Config = \{\n]); foreach (sort keys %$CPAN::Config) { + unless (exists $keys{$_}) { + $CPAN::Frontend->mywarn("Dropping unknown config variable '$_'\n"); + delete $CPAN::Config->{$_}; + next; + } $fh->print( " '$_' => ", $self->neatvalue($CPAN::Config->{$_}), @@ -352,6 +371,7 @@ sub missing_config_data { "unzip", "urllist", ) { + next unless exists $keys{$_}; push @miss, $_ unless defined $CPAN::Config->{$_}; } return @miss; @@ -418,7 +438,7 @@ package ####::###### #hide from indexer use strict; use vars qw($AUTOLOAD $VERSION); -$VERSION = sprintf "%.2f", substr(q$Rev: 469 $,4)/100; +$VERSION = sprintf "%.2f", substr(q$Rev: 488 $,4)/100; # formerly CPAN::HandleConfig was known as CPAN::Config sub AUTOLOAD { diff --git a/lib/CPAN/SIGNATURE b/lib/CPAN/SIGNATURE index f356bc9ba9..89912938a5 100644 --- a/lib/CPAN/SIGNATURE +++ b/lib/CPAN/SIGNATURE @@ -14,26 +14,26 @@ not run its Makefile.PL or Build.PL. -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 -SHA1 d73dfb45123f36ff3e574eff09b95847c5d085be ChangeLog +SHA1 649da294e424ab12cef006be80f29851eeed8eea ChangeLog SHA1 9b97524a7a91c815e46b19302a33829d3c26bbbf ChangeLog.old -SHA1 138d81e94ae5622b702958e9f82b12efd5c212fd Changes +SHA1 7795d2ac6a0f70f933b47af088417af0e91db952 Changes SHA1 a029ffa2f2252bb8914eb658666244710994d256 Changes.old SHA1 b3fc1dfd25885b80d144cf817b9f0b1c88fe41d6 MANIFEST -SHA1 b20081c83b148a15c6a123bde27825c8288a19db MANIFEST.SKIP -SHA1 c87e310507cb8c99009145ac23bd6404fc2cd9d8 META.yml -SHA1 05b99abbcfa0bc8b19782c4ff95da0fa5c25e2da Makefile.PL +SHA1 eeff7e8175811b30cdcfddd74c30c5ea4c13d43e MANIFEST.SKIP +SHA1 280263caec45d15f670b15d10f29973a56cf49b1 META.yml +SHA1 27df1ed86de0f2b87bba5f7d0bb752690c6eb399 Makefile.PL SHA1 37e858c51409a297ef5d3fb35dc57cd3b57f9a4d PAUSE2003.pub SHA1 af016003ad503ed078c5f8254521d13a3e0c494f PAUSE2005.pub -SHA1 5ef5bb7269c7ce8aaf6403fd2dc364e82525d27c README -SHA1 48b8d4c811d2098762ee6c05dd1d458e6fdff990 Todo +SHA1 c23965271da3c67a1a5a061b9ce7ede5b50a749f README +SHA1 d71298503e8bd777891d72cf2271693c514f5283 Todo SHA1 efbe8e6882a2caa0d741b113959a706830ab5882 inc/Test/Builder.pm SHA1 ae1d68262bedc2475e2c6fd478d99b259b4fb109 inc/Test/More.pm SHA1 06a0406535e8ae4057e374d4ea8cd5b105483803 lib/Bundle/CPAN.pm -SHA1 edd907a918dfefa14e164acd709473dd18d7c4bc lib/CPAN.pm +SHA1 82ab8f61c57da30ae9c67eab1f49cc6ef2da12f5 lib/CPAN.pm SHA1 104fd2b39fdba692143655b53bcf01d36c8ebf68 lib/CPAN/Admin.pm SHA1 82acb5a70221cd4ebc82e96f95f537018e39c79e lib/CPAN/Debug.pm -SHA1 15b207860f9642b5b3313d1cea4843f9bd0ea0d2 lib/CPAN/FirstTime.pm -SHA1 836a525c6ab79bf90175ab0d353c2c134eabf204 lib/CPAN/HandleConfig.pm +SHA1 b5bced5735a8736f317eba67c3319a82345d22c9 lib/CPAN/FirstTime.pm +SHA1 20e41047e4aaa68854186c03d5252ad536d254dc lib/CPAN/HandleConfig.pm SHA1 4fa9695417b54fc8d4e29684ad61689bc108274b lib/CPAN/Nox.pm SHA1 e85202a30802f3cd86e67af649ba219d97b0925c lib/CPAN/Tarzip.pm SHA1 726e924200e3e2fda54caa4eddf7029a02f43efe lib/CPAN/Version.pm @@ -44,13 +44,13 @@ SHA1 215dace24b507de20011d36cbe2d16ddea78bcf3 t/loadme.t SHA1 325d8a2f72d59c4cd2400c72403c05cd614c3abc t/mirroredby.t SHA1 6a79f15a10337bd3450604abf39d4462df2a550b t/pod.t SHA1 274110e8c8353912bb849cec6556f2267b8c5c92 t/shell.t -SHA1 952e77e7944637eed1b5d202afa98baef8a4c64c t/signature.t +SHA1 0c3509be603b7ae86d5e7bd422d9bb6054da0935 t/signature.t SHA1 fdc0f927e3442829ab3b7d40cb63b0223c49abc6 t/vcmp.t SHA1 b505a0db80ed4c835ad5676e9d1cbf09c86e6c34 t/version.t -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) -iD8DBQFD13cm7IA58KMXwV0RAtYQAKCSH0kNMNtkpoPUJxee9YO/2nwbLgCeJxme -qV+u9LyVOVEpi7L2IrVMJPk= -=dy0j +iD8DBQFD4c2e7IA58KMXwV0RAqUtAJ4nelMoeiUIe6JqLAMKqmvTEAbuzgCguPIh +ZiSdaiDh1S5qiobZ9ATaGWY= +=vJZ9 -----END PGP SIGNATURE----- |