From: Graham Knop <haarg@haarg.org>
Date: Wed, 20 Nov 2013 11:13:27 +0000 (-0500)
Subject: don't try to create paths if we are deactivating
X-Git-Tag: v2.000_000~66
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f22d40d72d57fdc8783274558f138cc1189d8be5;p=p5sagit%2Flocal-lib.git

don't try to create paths if we are deactivating
---

diff --git a/lib/local/lib.pm b/lib/local/lib.pm
index 1dcf471..5741fa1 100644
--- a/lib/local/lib.pm
+++ b/lib/local/lib.pm
@@ -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