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

Bug#403886: tetex-doc preinst: line 8: [: too many arguments



Package: tetex-doc
Version: 3.0.dfsg.3-4
Severity: normal

When upgrading tetex-doc I got the error:

/var/lib/dpkg/tmp.ci/preinst: line 8: [: too many arguments

In /var/lib/dpkg/info/tetex-doc.preinst I found on line 8:

if [ `md5sum $OLDCONFFILE` = f2b4328c1403ac91f92d8b144c1be7fe ]; then

the md5sum output is not just the checksum but "checksum filename". One
solution would be to change the line into

if [ `md5sum $OLDCONFFILE|cut -d' ' -f1` = f2b4328c1403ac91f92d8b144c1be7fe ]; then

but somehow I'm sure there's a better one.


-- System Information:
Debian Release: 4.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

tetex-doc depends on no packages.

Versions of packages tetex-doc recommends:
ii  gs-esp [postscript-vi 8.15.3.dfsg.1-1    The Ghostscript PostScript interpr
ii  gs-gpl [postscript-vi 8.54.dfsg.1-5      The GPL Ghostscript PostScript int
ii  iceweasel [www-browse 2.0+dfsg-1         lightweight web browser based on M
ii  kghostview [pdf-viewe 4:3.5.5-2          PostScript viewer for KDE
ii  konqueror [www-browse 4:3.5.5a.dfsg.1-3  KDE's advanced file manager, web b
ii  kpdf [pdf-viewer]     4:3.5.5-2          PDF viewer for KDE
ii  links [www-browser]   0.99+1.00pre12-1.1 Character mode WWW browser
ii  tetex-bin             3.0-27             The teTeX programs
ii  xemacs21-mule [www-br 21.4.19-2          highly customizable text editor --
ii  xpdf                  3.01-9             Portable Document Format (PDF) sui
ii  xpdf-reader [pdf-view 3.01-9             Portable Document Format (PDF) sui
ii  xpdf-utils [pdf-viewe 3.01-9             Portable Document Format (PDF) sui

-- no debconf information



Reply to: