tag 570388 patch
thanks

Hi,

I've attached a patch to make xulrunner-1.9.1's preinst check whether
these directories exist before trying to change their permissions.  I
verified that this allowed the resulting package to be installed on a
system in which these directories didn't exist.

-- 
Matt                                            http://ftbfs.org/kraai
--- xulrunner-1.9.1.8~/debian/xulrunner-1.9.1.preinst	2010-02-20 02:50:04.000000000 -0800
+++ xulrunner-1.9.1.8/debian/xulrunner-1.9.1.preinst	2010-02-20 02:53:36.000000000 -0800
@@ -3,7 +3,11 @@
 set -e
 
 if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then
-    chmod -f 755 /usr/lib/mozilla /usr/lib/mozilla/extensions
+    for directory in /usr/lib/mozilla /usr/lib/mozilla/extensions; do
+	if [ -d $directory ]; then
+	    chmod -f 755 $directory
+	fi
+    done
     if [ -d /usr/lib/xulrunner-1.9.1/chrome ] &&
        [ ! -L /usr/lib/xulrunner-1.9.1/chrome ]; then
         rmdir /usr/lib/xulrunner-1.9.1/chrome

Reply via email to