From: Joey Hess Date: Tue, 29 Apr 2008 06:23:36 +0000 (-0400) Subject: One problem with the log files is that if dh_clean is not the last command run, they... X-Git-Tag: 7.0.3 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=fbe91f3fd30553e855fa970f80fb7b6fa2988bf5;p=debhelper.git One problem with the log files is that if dh_clean is not the last command run, they will be left behind. This is a particular problem on build daemons that use real root. Especially if cdbs is used, since it runs dh_listpackages after clean, thereby leaving behind log files that only root can touch. Avoid this particular special case by inhibiting logging by dh_listpackages. --- diff --git a/debian/changelog b/debian/changelog index 9df366f..a5696ad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,12 @@ debhelper (7.0.3) unstable; urgency=low * dh: Fix man page typos. Closes: #477933 * Add missing $! to error message when the log can't be opened. + * One problem with the log files is that if dh_clean is not the last command + run, they will be left behind. This is a particular problem on build + daemons that use real root. Especially if cdbs is used, since it runs + dh_listpackages after clean, thereby leaving behind log files that + only root can touch. Avoid this particular special case by inhibiting + logging by dh_listpackages. -- Joey Hess Tue, 29 Apr 2008 01:40:03 -0400 diff --git a/dh_listpackages b/dh_listpackages index f919ef6..79b664b 100755 --- a/dh_listpackages +++ b/dh_listpackages @@ -23,6 +23,7 @@ act on if passed the same options. =cut init(); +inhibit_log(); print join("\n",@{$dh{DOPACKAGES}})."\n"; =head1 SEE ALSO