summaryrefslogtreecommitdiff
path: root/dh
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-03-31 16:09:47 -0400
committerJoey Hess <joey@gnu.kitenet.net>2010-03-31 16:09:47 -0400
commit28dd5ab8b92bad4440c328a777e4e960f6363c58 (patch)
treee8490858a5210c58db2e88afce6aee24a104f63a /dh
parent2380e46415865dc654e2b8056aa85b893f4b93fb (diff)
dh: Allow --list-addons to be used when not in a source package. Closes: #574351
Diffstat (limited to 'dh')
-rwxr-xr-xdh6
1 files changed, 3 insertions, 3 deletions
diff --git a/dh b/dh
index bcac8da..4f2b987 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) {