[Piuparts-commits] [piuparts] 01/07: scripts/pre_remove_40_find_missing_md5sums: handle filenames containing backslashes

Holger Levsen holger at layer-acht.org
Sun Feb 26 13:56:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch develop
in repository piuparts.

commit ce6f668cbc9473d220c4a2af6ae917443687a055
Author: Andreas Beckmann <anbe at debian.org>
Date:   Thu Feb 9 01:20:02 2017 +0100

    scripts/pre_remove_40_find_missing_md5sums: handle filenames containing backslashes
    
    Signed-off-by: Andreas Beckmann <anbe at debian.org>
    Signed-off-by: Holger Levsen <holger at layer-acht.org>
---
 custom-scripts/scripts/pre_remove_40_find_missing_md5sums | 2 +-
 debian/changelog                                          | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/custom-scripts/scripts/pre_remove_40_find_missing_md5sums b/custom-scripts/scripts/pre_remove_40_find_missing_md5sums
index cb821a5..5df6f7f 100755
--- a/custom-scripts/scripts/pre_remove_40_find_missing_md5sums
+++ b/custom-scripts/scripts/pre_remove_40_find_missing_md5sums
@@ -31,7 +31,7 @@ do
 
 	f2=/var/run/f2.$$
 	>$f2
-	dpkg -L "$pkg" | sort | \
+	dpkg -L "$pkg" | sed 's,\\,\\\\,' | sort | \
 	while read f ; do
 		if [ "$f" != "${f#package diverts others to: }" ]; then
 			: # skip diversion information
diff --git a/debian/changelog b/debian/changelog
index 8af27f3..d512700 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ piuparts (0.76) UNRELEASED; urgency=medium
   [ Andreas Beckmann ]
   * Clean up leftover /etc/piuparts/scripts/post_setup_experimental.
     (Closes: #854317)
+  * scripts/pre_remove_40_find_missing_md5sums: Correctly escape backslashes
+    in filenames.
 
   [ Holger Levsen ]
   * piuparts.py: apply patch from Maxime Lareo to allow usage of

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/piuparts/piuparts.git



More information about the Piuparts-commits mailing list