X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_clean;h=15cdc661266b433827135a252e9409f2be6d86cc;hb=18a0da8092ea9f3dc48bca92b36f592af25a608d;hp=dc29e36fd92ee7ef087d0c6d8b589d2230f98903;hpb=0952ac2e9995da8abe149f3e42b3b8d9d2797112;p=debhelper.git diff --git a/dh_clean b/dh_clean index dc29e36..15cdc66 100755 --- a/dh_clean +++ b/dh_clean @@ -86,16 +86,20 @@ foreach my $package (@{$dh{DOPACKAGES}}) { # These are all debhelper temp files, and so it is safe to # wildcard them. complex_doit("rm -f debian/$ext*.debhelper"); - - if (! $dh{K_FLAG}) { - doit("rm","-f","debian/${ext}debhelper.log"); - } } doit ("rm","-rf",$tmp."/") unless excludefile($tmp); } +# Remove all debhelper logs. +if (! $dh{D_FLAG} && ! $dh{K_FLAG}) { + complex_doit("rm","-f","debian/*.debhelper.log"); + if (compat(1)) { + doit("rm","-f","debian/debhelper.log"); + } +} + if (! $dh{D_FLAG}) { if (@ARGV) { doit("rm","-f","--",@ARGV);