summaryrefslogtreecommitdiff
path: root/dh_elpa
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2019-12-09 13:39:43 -0500
committerDavid Bremner <bremner@debian.org>2020-01-13 13:54:31 -0400
commit50cd428f5d6e65066f4a8bd86270b99b15974335 (patch)
tree6017ffaac63c2a90ad1210d8ec37efc5abc5aba0 /dh_elpa
parent3291d631cb26f9810ca39d015fda7edbb7f587cd (diff)
Bug#946142: [PATCH] log files for visibility by dh_missing (Closes: #946142)
These changes are inspired by the recommendations in "Logging helpers and dh_missing" in /usr/share/doc/debhelper/PROGRAMMING.gz, and derived from the source of dh_installman and dh_installinfo. (The weird extraction of the file list from @action is idiosyncratic to dh_elpa, afaict) Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
Diffstat (limited to 'dh_elpa')
-rwxr-xr-xdh_elpa7
1 files changed, 5 insertions, 2 deletions
diff --git a/dh_elpa b/dh_elpa
index 0d3739d..982ac7b 100755
--- a/dh_elpa
+++ b/dh_elpa
@@ -210,10 +210,11 @@ if ($dh{BYTECOMPILE}) {
}
PACKAGE:
-foreach my $package (@{$dh{DOPACKAGES}}) {
+foreach my $package (getpackages()) {
my $tmp=tmpdir($package);
my $file=pkgfile($package,"elpa");
+ my $skip_install = process_pkg($package) ? 0 : 1;
my $varname="ELPA_NAME_${package}";
my $elpapkg = $ENV{$varname} || $ENV{ELPA_NAME};
@@ -265,7 +266,9 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
push @actions, map { {"src" => $_} } @ARGV;
}
- next PACKAGE if (scalar(@actions) == 0);
+ log_installed_files($package, map { @{$_->{src}} } @actions);
+
+ next PACKAGE if ($skip_install or (scalar(@actions) == 0));
my $pkg_file;
my $cwd = getcwd();