From 28dd5ab8b92bad4440c328a777e4e960f6363c58 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 31 Mar 2010 16:09:47 -0400 Subject: [PATCH] dh: Allow --list-addons to be used when not in a source package. Closes: #574351 --- debian/changelog | 2 ++ dh | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 358282e..6250450 100644 --- a/debian/changelog +++ b/debian/changelog @@ -15,6 +15,8 @@ debhelper (7.4.16) UNRELEASED; urgency=low packages that can be built for the current architecture. This change is mostly useful when using minimal rules files with dh. Closes: #572077 * dh_md5sums: Sort to ensure stable, more diffable order. Closes: #573702 + * dh: Allow --list-addons to be used when not in a source package. + Closes: #574351 -- Joey Hess Thu, 18 Feb 2010 17:53:27 -0500 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) { -- 2.39.2