diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2010-03-31 16:09:47 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2010-03-31 16:09:47 -0400 |
commit | 28dd5ab8b92bad4440c328a777e4e960f6363c58 (patch) | |
tree | e8490858a5210c58db2e88afce6aee24a104f63a /dh | |
parent | 2380e46415865dc654e2b8056aa85b893f4b93fb (diff) | |
download | debhelper-28dd5ab8b92bad4440c328a777e4e960f6363c58.tar.gz |
dh: Allow --list-addons to be used when not in a source package. Closes: #574351
Diffstat (limited to 'dh')
-rwxr-xr-x | dh | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |