From 28dd5ab8b92bad4440c328a777e4e960f6363c58 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 31 Mar 2010 16:09:47 -0400 Subject: dh: Allow --list-addons to be used when not in a source package. Closes: #574351 --- dh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'dh') diff --git a/dh b/dh index bcac8da8..4f2b9876 100755 --- a/dh +++ b/dh @@ -247,8 +247,8 @@ init(options => { my ($option,$value)=@_; @{$dh{WITH}} = grep { $_ ne $value } @{$dh{WITH}}; }, - "l" => \$dh{LIST}, - "list" => \$dh{LIST}, + "l" => \&list_addons, + "list" => \&list_addons, }, # Disable complaints about unknown options; they are passed on the # debhelper commands. @@ -397,7 +397,7 @@ sub remove_command_options { } } -if ($dh{LIST}) { +sub list_addons { my %addons; for my $inc (@INC) { -- cgit v1.2.3