diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2019-12-09 13:39:43 -0500 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2020-01-13 13:54:31 -0400 |
commit | 50cd428f5d6e65066f4a8bd86270b99b15974335 (patch) | |
tree | 6017ffaac63c2a90ad1210d8ec37efc5abc5aba0 | |
parent | 3291d631cb26f9810ca39d015fda7edbb7f587cd (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>
-rwxr-xr-x | dh_elpa | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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(); |