Comment 4 for bug 277301

Revision history for this message
Steve Beattie (sbeattie) wrote :

I can reproduce this just through a simple "sudo apt-get install djview" on intrepid. The postinst for djview has the following code:

  # Alternatives
  if [ "$1" = "configure" ] && [ -x /usr/sbin/update-alternatives ] ; then
    m1=`ls -1 /usr/share/man/man1/djview3.* | head -1`
    m2=`echo $m1 | sed -e 's/djview3/djview/'`
    /usr/sbin/update-alternatives --quiet \
      --install /usr/bin/djview djview /usr/bin/djview3 103 \
      --slave $m2 `basename $m2` $m1
  fi

However, the djview4 postinst already handles setting up the man link and update-alternatives; djview.postinst should probably only be doing this if djview3 is installed; i.e. only if /usr/bin/djview3 exists.