]> git.donarmstrong.com Git - debhelper.git/commitdiff
avoid loading File::Spec when not needed
authorJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 16:37:39 +0000 (12:37 -0400)
committerJoey Hess <joey@gnu.kitenet.net>
Sun, 16 Aug 2009 16:37:39 +0000 (12:37 -0400)
dh

diff --git a/dh b/dh
index 2e7385f4ec7f286bd197c53bc388087a899fc5dd..9a6af325433c8ed10c40cee431bcf0bbc8e7cba2 100755 (executable)
--- 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") {