]> git.donarmstrong.com Git - debhelper.git/commitdiff
Add deprecation warning for dh_clean -k.
authorJoey Hess <joey@kitenet.net>
Sun, 23 May 2010 22:54:53 +0000 (18:54 -0400)
committerJoey Hess <joey@kitenet.net>
Sun, 23 May 2010 22:54:53 +0000 (18:54 -0400)
debian/changelog
dh_clean
doc/TODO

index fa04d07801b75464f99733e27763def96a7af068..8e68e130fd10ada42e3ec2c57b3092e2a9a34650 100644 (file)
@@ -4,6 +4,7 @@ debhelper (7.4.21) UNRELEASED; urgency=low
   * dh_installman: Avoid converting .so links to symlinks if the link
     target is not present in the same binary package, on advice of 
     Colin Watson. (To support eventual so search paths.)
+  * Add deprecation warning for dh_clean -k.
 
  -- Joey Hess <joeyh@debian.org>  Mon, 17 May 2010 20:01:19 -0400
 
index bc5bc579074873f3fcc3fb3f6c9b4887a3818277..2fca78159f8c12910ee2727e0f9327dde9d11b46 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -72,7 +72,7 @@ inhibit_log();
 
 if ($dh{K_FLAG}) {
        # dh_prep will be emulated (mostly) by the code below.
-       # TODO deprecation warning
+       warning("dh_clean -k is deprecated; use dh_prep instead");
 }
 
 foreach my $package (@{$dh{DOPACKAGES}}) {
index ae5269682a9461ded07216f2125c4ff101987fd8..42a25e380f4e376520a35193459a89e48613646d 100644 (file)
--- a/doc/TODO
+++ b/doc/TODO
@@ -23,10 +23,6 @@ Deprecated:
 * DH_COMPAT 1, 2, 3, 4. Can be removed once all packages are seen to be using
   a newer version. I won't hold my breath. Now with evil warning messages
   though.
-* Also, grep the entire archive for all dh_* command lines,
-  and check to see what other switches are not being used, and maybe remove
-  some of them. I'd also like to deprecate/remove debian/compress files, -X is
-  a better idea.
 * dh_suidregister. Once nothing in the archive uses it.
 * dh_installmanpages.
 * dh_testversion. Remove as soon as nothing uses it.
@@ -35,10 +31,15 @@ Deprecated:
 * dh_undocumented
 * dh_installinit --init-script (make it warn)
 * dh_python
-* dh_clean -k (make it warn (need to make alien not use it 1st!))
+* dh_clean -k
 * dh_desktop, dh_scrollkeeper. Remove eventually..
 * -s flag, not formally deprecated yet; remove eventually
 * -u flag; add a warning on use and remove eventually
 * delsubstvar() and the last parameter to addsubstvar that makes it remove
   a string are not used in debhelper itself, but have been left in the
   library in case other things use them. Deprecate and remove.
+
+Also, grep the entire archive for all dh_* command lines,
+and check to see what other switches are not being used, and maybe remove
+some of them. I'd also like to deprecate/remove debian/compress files, -X is
+a better idea.