[debhelper-devel] Bug#895056: Bug#895056: Dh_Lib.pm: avoid creating empty log of installed files
Niels Thykier
niels at thykier.net
Fri Apr 6 20:20:00 UTC 2018
Control: tags -1 moreinfo
Nicolas Boulenguez:
> Package: debhelper
> Version: 11.1.6
> Severity: wishlist
> Tags: patch
>
> In Dh_Lib.pm, "sub log_installed_files" starts with:
> return if $dh{NO_ACT};
> I suggest
> return if $dh{NO_ACT} or not @patterns;
> instead so that the file is only created if it is useful.
> (seen with DEB_BUILD_OPTIONS=nodoc dh_installinfo).
>
Those empty files are quite deliberate as dh_missing informs you which
tools reported that they would install files.
See also "Logging helpers and dh_missing:" in doc/PROGRAMMING, which
describes the interface between dh_missing and dh_install* helpers.
Thanks,
~Niels
More information about the debhelper-devel
mailing list