]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_clean
Updated French man page translation. Closes: #685560
[debhelper.git] / dh_clean
index dc29e36fd92ee7ef087d0c6d8b589d2230f98903..15cdc661266b433827135a252e9409f2be6d86cc 100755 (executable)
--- 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);