X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=dh_clean;h=47019fcdf31b1c1049cd38e17193beded8008ba7;hb=a7a4b118fa290eb38be206c4c01a8f433c4f8f14;hp=c7465d395b24cc32460db57b392d1514c00fb389;hpb=8627c82cf2a2432334270b817f14340c0e6b423e;p=debhelper.git diff --git a/dh_clean b/dh_clean index c7465d3..47019fc 100755 --- a/dh_clean +++ b/dh_clean @@ -36,8 +36,7 @@ clean target in debian/rules. =item B<-k>, B<--keep> -This causes L to be run instead of dh_clean, for backwards -compatibility. +This is deprecated, use L instead. =item B<-d>, B<--dirs-only> @@ -58,7 +57,9 @@ Delete these files too. =cut -init(); +init(options => { + "dirs-only" => \$dh{D_FLAG}, +}); inhibit_log(); if ($dh{K_FLAG}) { @@ -122,7 +123,7 @@ if (! $dh{D_FLAG}) { doit('rm', '-rf', 'debian/tmp') if -x 'debian/tmp' && ! compat(1) && ! excludefile("debian/tmp"); -if (!compat(6)) { +if (!compat(6) && !$dh{K_FLAG}) { complex_doit('rm -f *-stamp'); }