[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#363079: x11-common postinst fails about broken test



Package: x11-common
Version: 7.0.12
Severity: serious
Tags: patch

The postinst script fails:

# dpkg -i x11-common_1%3a7.0.12_amd64.deb
(Reading database ... 76526 files and directories currently installed.)
Preparing to replace x11-common 1:7.0.10 (using x11-common_1%3a7.0.12_amd64.deb) ...
Unpacking replacement x11-common ...
Setting up x11-common (7.0.12) ...
/var/lib/dpkg/info/x11-common.postinst: line 918: [: too many arguments
Setting up X server socket directory /tmp/.X11-unix....
Setting up ICE socket directory /tmp/.ICE-unix....

Suggested patch:

--- debian/x11-common.postinst.in~      2006-04-15 18:33:45.000000000 +0200
+++ debian/x11-common.postinst.in       2006-04-17 15:16:42.000000000 +0200
@@ -50,7 +50,7 @@
   fi
 fi

-if [ ! -L -e -d "/usr/X11R6/bin" ]; then
+if ! [ -L "/usr/X11R6/bin" ] && [ -d "/usr/X11R6/bin" ]; then
   rmdir "/usr/X11R6/bin" || die "Could not remove /usr/X11R6/bin. Is not yet empty. Please remove any items still in the directory. You can move them back after the install has completed successfully."
 fi
 if ! [ -e "/usr/X11R6/bin" ]; then



Regards

Harri


Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: