From: joeyh Date: Fri, 20 Jan 2006 22:06:07 +0000 (+0000) Subject: r1859: * Reverted change in 4.1.9, so generation of EXCLUDE_FIND escapes "." to X-Git-Tag: 5.0.18~1 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=9294875cbb26268af70ec8a84fb9ff74c76cf957;p=debhelper.git r1859: * Reverted change in 4.1.9, so generation of EXCLUDE_FIND escapes "." to "\\.", which turns into "\." after being run through the shell, and prevents find from treating -X.svn as a regexp that matches files such as foo/svn.vim. (It's safe to do this now that all uses of EXCLUDE_FIND are via complex_doit(), which was not the case of dh_clean when this change was originally made.) Closes: #349070 --- diff --git a/Debian/Debhelper/Dh_Lib.pm b/Debian/Debhelper/Dh_Lib.pm index 7c0a18a..80645ab 100644 --- a/Debian/Debhelper/Dh_Lib.pm +++ b/Debian/Debhelper/Dh_Lib.pm @@ -55,7 +55,7 @@ sub init { foreach (@{$dh{EXCLUDE}}) { my $x=$_; $x=escape_shell($x); - $x=~s/\./\\./g; + $x=~s/\./\\\\./g; $dh{EXCLUDE_FIND}.="-regex .\\*$x.\\* -or "; } $dh{EXCLUDE_FIND}=~s/ -or $//; diff --git a/debian/changelog b/debian/changelog index e0318f7..f969c30 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,14 @@ debhelper (5.0.18) UNRELEASED; urgency=low * Improved po4a cleaning. Closes: #348521 - - -- Joey Hess Wed, 18 Jan 2006 16:12:13 -0500 + * Reverted change in 4.1.9, so generation of EXCLUDE_FIND escapes "." to + "\\.", which turns into "\." after being run through the shell, and + prevents find from treating -X.svn as a regexp that matches files such + as foo/svn.vim. (It's safe to do this now that all uses of EXCLUDE_FIND are + via complex_doit(), which was not the case of dh_clean when this change + was originally made.) Closes: #349070 + + -- Joey Hess Fri, 20 Jan 2006 16:56:00 -0500 debhelper (5.0.17) unstable; urgency=low diff --git a/doc/PROGRAMMING b/doc/PROGRAMMING index b87a8c6..a33daeb 100644 --- a/doc/PROGRAMMING +++ b/doc/PROGRAMMING @@ -102,7 +102,9 @@ switch variable description EXCLUDE_FIND same as DH_EXCLUDE, except all items are put into a string in a way that they will make find find them. (Use ! in front to negate - that, of course) + that, of course) Note that this should + only be used inside complex_doit(), not in + doit(). -x INCLUDE_CONFFILES include conffiles. It's -x for obscure historical reasons.