r9834 - /trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst
ntyni-guest at users.alioth.debian.org
ntyni-guest at users.alioth.debian.org
Tue Nov 27 18:59:01 UTC 2007
Author: ntyni-guest
Date: Tue Nov 27 18:59:00 2007
New Revision: 9834
URL: http://svn.debian.org/wsvn/?sc=1&rev=9834
Log:
survive a missing ParserDetails.d directory
Modified:
trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst
Modified: trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst
URL: http://svn.debian.org/wsvn/trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst?rev=9834&op=diff
==============================================================================
--- trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst (original)
+++ trunk/libxml-sax-perl/debian/libxml-sax-perl.postinst Tue Nov 27 18:59:00 2007
@@ -20,12 +20,13 @@
# /var/lib/libxml-sax-perl
for i in /etc/perl/XML/SAX/ParserDetails.d/*
do
- # the directory should never be empty, but the [ ! -e ]
+ # the directory should never be missing or empty, but the [ ! -e ]
# construct handles an unexpanded glob just in case
[ ! -e "$i" ] || \
mv "$i" "/var/lib/libxml-sax-perl/ParserDetails.d/50-$(basename $i)"
done
- rmdir --ignore-fail-on-non-empty /etc/perl/XML/SAX/ParserDetails.d
+ [ ! -d /etc/perl/XML/SAX/ParserDetails.d ] || \
+ rmdir --ignore-fail-on-non-empty /etc/perl/XML/SAX/ParserDetails.d
# now downgrade XML::SAX::PurePerl priority by removing it first
update-perl-sax-parsers --quiet --remove XML::SAX::PurePerl
More information about the Pkg-perl-cvs-commits
mailing list