X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2Flocal%2Flib.pm;h=8033d19a56f54dfa65ee0fffd438455d2490149c;hb=ee0e18400d9160c091cc40480006c05c929d4d25;hp=a634a242f8f8efda5d55c185f5973cbe548926a3;hpb=387f80220829f113007b021a7cbfa7e6bb209f01;p=p5sagit%2Flocal-lib.git diff --git a/lib/local/lib.pm b/lib/local/lib.pm index a634a24..8033d19 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -9,7 +9,7 @@ use File::Spec (); use File::Path (); use Config; -our $VERSION = '1.008_025'; # 1.8.25 +our $VERSION = '1.008026'; # 1.8.26 $VERSION = eval $VERSION; our @KNOWN_FLAGS = qw(--self-contained --deactivate --deactivate-all); @@ -208,7 +208,8 @@ sub setup_local_lib_for { my $interpolate = LITERAL_ENV; my @active_lls = $class->active_paths; - $class->ensure_dir_structure_for($path); + $class->ensure_dir_structure_for($path) + unless $deactivating; # On Win32 directories often contain spaces. But some parts of the CPAN # toolchain don't like that. To avoid this, GetShortPathName() gives us @@ -362,9 +363,9 @@ sub setup_env_hash_for { sub build_environment_vars_for { my ($class, $path, $deactivating, $interpolate) = @_; - if ($deactivating == DEACTIVATE_ONE) { + if ($deactivating && $deactivating == DEACTIVATE_ONE) { return $class->build_deactivate_environment_vars_for($path, $interpolate); - } elsif ($deactivating == DEACTIVATE_ALL) { + } elsif ($deactivating && $deactivating == DEACTIVATE_ALL) { return $class->build_deact_all_environment_vars_for($path, $interpolate); } else { return $class->build_activate_environment_vars_for($path, $interpolate);