From: Joey Hess Date: Sun, 16 Aug 2009 16:37:39 +0000 (-0400) Subject: avoid loading File::Spec when not needed X-Git-Tag: 7.3.14~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=2b1b68c075986da675b33518a13d124139539fb6;p=debhelper.git avoid loading File::Spec when not needed --- diff --git a/dh b/dh index 2e7385f..9a6af32 100755 --- a/dh +++ b/dh @@ -8,7 +8,6 @@ dh - debhelper command sequencer use strict; use Debian::Debhelper::Dh_Lib; -use File::Spec; =head1 SYNOPSIS @@ -339,6 +338,7 @@ if ($dh{LIST}) { my %addons; for my $inc (@INC) { + eval q{use File::Spec}; my $path = File::Spec->catdir($inc, "Debian/Debhelper/Sequence"); if (-d $path) { for my $module_path (glob "$path/*.pm") {