]> git.donarmstrong.com Git - debhelper.git/commitdiff
r1772: releasing version 4.9.4 4.9.4
authorjoey <joey>
Tue, 19 Jul 2005 17:13:24 +0000 (17:13 +0000)
committerjoey <joey>
Tue, 19 Jul 2005 17:13:24 +0000 (17:13 +0000)
Debian/Debhelper/Dh_Lib.pm
debian/changelog
debian/control
dh_clean
dh_fixperms

index 3effb60b9a21d817fff4dfabf37185bacafdd737..85a77886b3a0cdb82bcf6cef1af054a12c8a0b1f 100644 (file)
@@ -14,7 +14,7 @@ use vars qw(@ISA @EXPORT %dh);
            &pkgfile &pkgext &pkgfilename &isnative &autoscript &filearray
            &filedoublearray &getpackages &basename &dirname &xargs %dh
            &compat &addsubstvar &delsubstvar &excludefile &package_arch
-           &is_udeb &udeb_filename &debhelper_script_subst);
+           &is_udeb &udeb_filename &debhelper_script_subst &escape_shell);
 
 my $max_compat=5;
 
@@ -56,7 +56,7 @@ sub init {
                        my $x=$_;
                        $x=escape_shell($x);
                        $x=~s/\./\\./g;
-                       $dh{EXCLUDE_FIND}.="-regex .*$x.* -or ";
+                       $dh{EXCLUDE_FIND}.="-regex .\\*$x.\\* -or ";
                }
                $dh{EXCLUDE_FIND}=~s/ -or $//;
        }
index 65eb832eaab38cdfecf572bd76222e1ffb4dba8d..fccb4357ca3cb10a0daf3d4762570f5731ae95ce 100644 (file)
@@ -1,3 +1,15 @@
+debhelper (4.9.4) unstable; urgency=low
+
+  * dh_clean: switch to using complex_doit for the evil find command
+    and quoting everything explicitly rather than the doit approach used
+    before. This way all uses of EXCLUDE_FIND will use complex_doit, which
+    is necesary for sanity.
+  * Dh_Lib: Make COMPLEX_DOIT properly escape wildcards for use with
+    complex_doit. Before they were unescaped, which could lead to subtle
+    breakage.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 19 Jul 2005 12:47:30 -0400
+
 debhelper (4.9.3) unstable; urgency=high
 
   * Fix typo in postrm-modules fragment. Closes: #316069
index 6d9d74e6d48a622c8d45924708b4462f582f06b1..4ce96b231c2c0db2cb227d9c1535c1b7fbee5c60 100644 (file)
@@ -2,7 +2,7 @@ Source: debhelper
 Section: devel
 Priority: optional
 Maintainer: Joey Hess <joeyh@debian.org>
-Standards-Version: 3.6.1.0
+Standards-Version: 3.6.2
 
 Package: debhelper
 Architecture: all
index 9b5885fe2d42e67cfdcd49a04b111051d2649aa4..0fb3464ae2e554b5060d884ec90365f27b7431d1 100755 (executable)
--- a/dh_clean
+++ b/dh_clean
@@ -87,19 +87,16 @@ if (! $dh{D_FLAG}) {
        # See if some files that would normally be deleted are excluded.
        my $find_options='';
        if (defined($dh{EXCLUDE_FIND}) && $dh{EXCLUDE_FIND} ne '') {
-               $find_options="-a ! ( $dh{EXCLUDE_FIND} )";
+               $find_options="-a ! \\( $dh{EXCLUDE_FIND} \\)";
        }
 
        # Remove other temp files.
-       # (The \s+ is important, \s won't work because find would get null
-       # parameters). Note that you _don't_ quote wildcards used by find
-       # in here.
-       doit(split(/\s+/,"find . -type f -a
-               ( -name #*# -o -name .*~ -o -name *~ -o -name DEADJOE
-                -o -name *.orig -o -name *.rej -o -name *.bak
-                -o -name .*.orig -o -name .*.rej -o -name .SUMS
-                -o -name TAGS -o -name core -o ( -path */.deps/* -a -name *.P )
-               ) $find_options -exec rm -f {} ;"));
+       complex_doit("find . -type f -a \\
+               \\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \\
+                -o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \\
+                -o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \\
+                -o -name TAGS -o -name core -o \\( -path '*/.deps/*' -a -name '*.P' \\) \\
+               \\) $find_options -exec rm -f {} \\;");
 
        # Stupid autoconf cache directory.
        doit("rm", "-rf", "autom4te.cache")
index 5bd39f3dc495eee84d52dfdcfa48c5c9f4dfb26c..2a565bd3f926937b12605c83bc83f9384d9cdeda 100755 (executable)
@@ -57,7 +57,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
                "2>/dev/null | xargs -0r chown --no-dereference 0:0");
        complex_doit("find $tmp ! -type l $find_options -print0",
                "2>/dev/null | xargs -0r chmod go=rX,u+rw,a-s");
-               
+       
        # Fix up premissions in usr/share/doc, setting everything to not
        # executable by default, but leave examples directories alone.
        complex_doit("find $tmp/usr/share/doc -type f $find_options ! -regex '$tmp/usr/share/doc/[^/]*/examples/.*' -print0 2>/dev/null",