[Piuparts-commits] [piuparts] 23/23: find_obsolete_conffiles: dpkg-query might fail
Holger Levsen
holger at layer-acht.org
Tue Jan 17 12:39:47 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 183415ff136b725b961619ee79fecad3b83853a9
Author: Andreas Beckmann <anbe at debian.org>
Date: Mon Jan 16 23:58:36 2017 +0100
find_obsolete_conffiles: dpkg-query might fail
and refuse to know about a conffile which it had just listed ...
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_obsolete_conffiles | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/custom-scripts/scripts/pre_remove_40_find_obsolete_conffiles b/custom-scripts/scripts/pre_remove_40_find_obsolete_conffiles
index 5a5e069..0aa070f 100755
--- a/custom-scripts/scripts/pre_remove_40_find_obsolete_conffiles
+++ b/custom-scripts/scripts/pre_remove_40_find_obsolete_conffiles
@@ -8,7 +8,7 @@ do
while read file md5expected obs
do
info="OBSOLETE CONFFILE $file REGISTERED BY $pkg"
- query=$(dpkg-query -S $file)
+ query=$(dpkg-query -S "$file" || echo "???: $file")
owner=${query%: ${file}}
if [ "${owner%:*}" != "$pkg" ]; then
info="${info} OWNER CHANGED TO $owner"
--
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