]> git.donarmstrong.com Git - debhelper.git/commitdiff
r573: * dh_md5sums: note that it's used by debsums. Closes: #181521
authorjoey <joey>
Wed, 19 Feb 2003 19:03:09 +0000 (19:03 +0000)
committerjoey <joey>
Wed, 19 Feb 2003 19:03:09 +0000 (19:03 +0000)
   * Make addsubstvars() escape the value of the variable before passing it to
     the shell. Closes: #178524
   * Fixed escape_shell()'s escaping of a few things.

Debian/Debhelper/Dh_Lib.pm
debian/changelog
dh_md5sums

index c9910bad9a826ea1a2ca2015a972fd1adfdd966c..41b7a6346882f0cfb2d1965f8686a3cc6f33ad81 100644 (file)
@@ -117,7 +117,7 @@ sub escape_shell {
                        # This does make -V"foo bar" turn into "-Vfoo bar",
                        # but that will be parsed identically by the shell
                        # anyway..
-                       $word=~s/([\n`\$"\\])/\$1/g;
+                       $word=~s/([\n`\$"\\])/\\$1/g;
                        push @ret, "\"$word\"";
                }
                else {
@@ -439,7 +439,7 @@ sub addsubstvar {
        }
 
        if (length $line) {
-                complex_doit("(grep -s -v ${substvar} $substvarfile; echo '${substvar}=$line') > $substvarfile.new");
+                complex_doit("(grep -s -v ${substvar} $substvarfile; echo ".escape_shell("${substvar}=$line").") > $substvarfile.new");
                 doit("mv", "$substvarfile.new", $substvarfile);
        }
        else {
index 70e779cba98986d9265576cbde5a68b50ad1e8eb..3683986df2b02a529e0d908d57cdf563eee6f7e7 100644 (file)
@@ -1,3 +1,12 @@
+debhelper (4.1.32) unstable; urgency=low
+
+  * dh_md5sums: note that it's used by debsums. Closes: #181521
+  * Make addsubstvars() escape the value of the variable before passing it to
+    the shell. Closes: #178524
+  * Fixed escape_shell()'s escaping of a few things.
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 18 Feb 2003 19:01:45 -0500
+
 debhelper (4.1.31) unstable; urgency=low
 
   * Added dh_installcatalogs, for sgml (and later xml) catalogs. By
index 616a8d8970ffb2113f4b5274df9b4934afb5434f..4a0e460c338e004bb17cfdb4b8645fc0630514cb 100755 (executable)
@@ -18,6 +18,7 @@ B<dh_md5sums> [S<I<debhelper options>>] [B<-x>] [B<-X>I<item>] [B<--include-conf
 
 dh_md5sums is a debhelper program that is responsible for generating
 a DEBIAN/md5sums file, which lists the md5sums of each file in the package.
+These files are used by the debsums package.
 
 All files in DEBIAN/ are omitted from the md5sums file, as are all
 conffiles (unless you use the --include-conffiles switch).