Bug#403886: tetex-doc preinst: line 8: [: too many arguments
severity 403886 important
tags 403886 pending
thanks
Jan Hülsbergen <jan-debian@huelsbergen.de> wrote:
> 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
Arggh. I should have noticed that (and the diff was sent to this list,
and debian-relase...). Thanks for reporting; it's important, the only
reason why it's not RC is that only upgraders from testing will
encounter it.
> 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.
I don't think so.
Regards, Frank
--
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
Reply to: