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

Bug#362859: /var/lib/dpkg/info/x11-common.postinst: line 918: [: too many arguments



Package: x11-common
Version: 1:7.0.12
Severity: normal
Tags: patch

I think this is what you were looking for.

--- debian/x11-common.postinst.in.old   2006-04-16 01:25:57.000000000 +0100
+++ debian/x11-common.postinst.in       2006-04-16 01:29:01.000000000 +0100
@@ -50,7 +50,7 @@
   fi
 fi

-if [ ! -L -e -d "/usr/X11R6/bin" ]; then
+if [ ! -L "/usr/X11R6/bin" ] && [ -e "/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

Take care,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-1-686
Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF8)

Versions of packages x11-common depends on:
ii  debconf [debconf-2.0]         1.4.72     Debian configuration management sy
ii  debianutils                   2.15.5     Miscellaneous utilities specific t
ii  laptop-detect                 0.12.1     attempt to detect a laptop
ii  lsb-base                      3.1-3      Linux Standard Base 3.1 init scrip

x11-common recommends no packages.

-- debconf information:
* x11-common/xwrapper/nice_value: -10
* x11-common/xwrapper/allowed_users: Console Users Only
  x11-common/experimental_packages:
  x11-common/xwrapper/actual_allowed_users: console
  x11-common/xwrapper/nice_value/error:



Reply to: