[debhelper-devel] [debhelper] 01/02: Dh_Lib: Make getpackages() return *all* packages
Niels Thykier
nthykier at moszumanska.debian.org
Sat Jul 22 18:54:20 UTC 2017
This is an automated email from the git hooks/post-receive script.
nthykier pushed a commit to branch master
in repository debhelper.
commit 60e1f08257c7361bf4730769f37de34141355148
Author: Niels Thykier <niels at thykier.net>
Date: Sun Jul 16 16:48:11 2017 +0000
Dh_Lib: Make getpackages() return *all* packages
Signed-off-by: Niels Thykier <niels at thykier.net>
---
Debian/Debhelper/Dh_Lib.pm | 2 +-
debian/changelog | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm
index e79f5f3..792019e 100644
--- a/Debian/Debhelper/Dh_Lib.pm
+++ b/Debian/Debhelper/Dh_Lib.pm
@@ -1341,8 +1341,8 @@ sub getpackages {
$package_arches{$package}=$arch;
$package_multiarches{$package} = $multiarch;
$package_sections{$package} = $section || $source_section;
+ push(@{$packages_by_type{'all-listed-in-control-file'}}, $package);
if ($included_in_build_profile) {
- push(@{$packages_by_type{'all-listed-in-control-file'}}, $package);
if ($arch eq 'all') {
push(@{$packages_by_type{'indep'}}, $package);
push(@{$packages_by_type{'both'}}, $package);
diff --git a/debian/changelog b/debian/changelog
index 195b2f8..cd25170 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -37,6 +37,9 @@ debhelper (10.7) UNRELEASED; urgency=medium
* dh_systemd_start: Ditto.
* Dh_Lib: Reduce the use of shell and external commands for
generating the final maintscripts.
+ * Dh_Lib: Make getpackages without any arguments return all
+ packages as the documentation promises it should. Previously,
+ it would hide packages not built (e.g. due to Build-Profiles).
-- Niels Thykier <niels at thykier.net> Sat, 15 Jul 2017 09:42:32 +0000
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debhelper/debhelper.git
More information about the debhelper-devel
mailing list