r19379 - /trunk/libpdf-api2-perl/debian/postinst
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Sun May 4 17:27:12 UTC 2008
Author: dmn
Date: Sun May 4 17:27:12 2008
New Revision: 19379
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=19379
Log:
see if fonts is not a symlink before checking if it is a directory as "test" dereferences symlinks
Modified:
trunk/libpdf-api2-perl/debian/postinst
Modified: trunk/libpdf-api2-perl/debian/postinst
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libpdf-api2-perl/debian/postinst?rev=19379&op=diff
==============================================================================
--- trunk/libpdf-api2-perl/debian/postinst (original)
+++ trunk/libpdf-api2-perl/debian/postinst Sun May 4 17:27:12 2008
@@ -24,7 +24,7 @@
configure)
# In 0.66-1 the fonts dir is replaced by a symlink
# see #476242
- if [ -d "$ROOT/fonts/" ]; then
+ if [ ! -L "$ROOT/fonts" ] && [ -d "$ROOT/fonts/" ]; then
if rmdir "$ROOT/fonts"; then
ln -v -s ../../../fonts/truetype/ttf-dejavu "$ROOT/fonts"
else
More information about the Pkg-perl-cvs-commits
mailing list