]> git.donarmstrong.com Git - debhelper.git/commitdiff
dh_clean: Do not delete *-stamp files in -k mode in v7. Closes: #489918
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 8 Jul 2008 17:51:02 +0000 (13:51 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 8 Jul 2008 17:51:02 +0000 (13:51 -0400)
debian/changelog
dh_clean

index 63d3cd62191cbeb2650634312747b69693acd29b..b97d5d2fc26856cf268b3bc43a609fc0484d6d4c 100644 (file)
@@ -1,3 +1,9 @@
+debhelper (7.0.15) UNRELEASED; urgency=low
+
+  * dh_clean: Do not delete *-stamp files in -k mode in v7. Closes: #489918
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 08 Jul 2008 13:50:07 -0400
+
 debhelper (7.0.14) unstable; urgency=low
 
   * Load python-support sequence file first, to allow ones loaded later to
index c7465d395b24cc32460db57b392d1514c00fb389..5fd7f936cb5779c4db8152179acac82ae8295936 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -36,8 +36,7 @@ clean target in debian/rules.
 
 =item B<-k>, B<--keep>
 
-This causes L<dh_prep(1)> to be run instead of dh_clean, for backwards
-compatibility.
+This is deprecated, use L<dh_prep(1)> instead.
 
 =item B<-d>, B<--dirs-only>
 
@@ -122,7 +121,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');
 }