aboutsummaryrefslogtreecommitdiffstats
path: root/setenv.pl
diff options
context:
space:
mode:
authorEdmund von der Burg <evdb@mysociety.org>2011-04-05 10:53:00 +0100
committerEdmund von der Burg <evdb@mysociety.org>2011-04-05 10:53:00 +0100
commit401985292ca89b8b1cfdb73e9eff57aa8b36f5fd (patch)
treea3f709fb27269d33d02201a0a373bf1ca6093144 /setenv.pl
parenta1d17b7e5bd29a49ef2ab1a274c5921c757f85c0 (diff)
Fix for vhost deploy
Diffstat (limited to 'setenv.pl')
-rwxr-xr-xsetenv.pl6
1 files changed, 5 insertions, 1 deletions
diff --git a/setenv.pl b/setenv.pl
index 6e9fab20c..e24d6f9b2 100755
--- a/setenv.pl
+++ b/setenv.pl
@@ -69,7 +69,11 @@ else {
# we were just required - unload some modules to prevent old code
# getting in the way of loading newer code from the newly set directories.
- use Class::Unload;
+
+ # use an eval to prevent needing Class::Unload before perl-external properly
+ # setup
+ eval { use Class::Unload };
+ die $@ if $@;
my @modules =
sort