[Piuparts-commits] [piuparts] 09/10: pre_remove_40_find_missing_md5sums: ignore diversion information from dpkg -L

Holger Levsen holger at layer-acht.org
Mon Dec 19 13:04:40 UTC 2016


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

holger pushed a commit to branch develop
in repository piuparts.

commit bebc0c897d7f5d20e90cd3a3d4878afe836fa8e5
Author: Andreas Beckmann <anbe at debian.org>
Date:   Mon Dec 19 12:24:09 2016 +0100

    pre_remove_40_find_missing_md5sums: ignore diversion information from dpkg -L
    
    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 | 6 +++++-
 1 file changed, 5 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 b8aa444..cb821a5 100755
--- a/custom-scripts/scripts/pre_remove_40_find_missing_md5sums
+++ b/custom-scripts/scripts/pre_remove_40_find_missing_md5sums
@@ -33,7 +33,11 @@ do
 	>$f2
 	dpkg -L "$pkg" | sort | \
 	while read f ; do
-		if [ -d "$f" ]; then
+		if [ "$f" != "${f#package diverts others to: }" ]; then
+			: # skip diversion information
+		elif [ "$f" != "${f#locally diverted to: }" ]; then
+			: # skip diversion information
+		elif [ -d "$f" ]; then
 			: # ignore directories
 		elif [ "$f" = "/home" ]; then
 			: # ignore directory shipped by base-files that is

-- 
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