On 5 July 2006 at 13:59, Ross Boylan wrote:
| On Wed, Jul 05, 2006 at 03:40:19PM -0500, Dirk Eddelbuettel wrote:
| ....
| > What happens if you purge r-doc-html and reinstall? (We'd still need to fix
| > the bug on upgrade ...) 
| > 
| 
| That fixes the problem.  There are no warnings on install, and the
| files are there.
| 
| Your upgrade test used the same versions I had:
| Preparing to replace r-doc-html 2.3.0-1 (using 
.../r-doc-html_2.3.1-1_all.deb) ...
| 
| Here are some clues about the state of things while they were messed
| up:
| 
| # ls -l /usr/share/doc/r-doc-html/
| total 29
| -rw-r--r-- 1 root root 14976 Jun  1 04:19 changelog.Debian.gz
| -rw-r--r-- 1 root root 12177 Jun  1 04:19 copyright
| lrwxrwxrwx 1 root root    25 Feb 17  2005 manual -> ../../../lib/R/doc/manual
| # ls -l /usr/share/doc/r-doc-html/manual
| lrwxrwxrwx 1 root root 25 Feb 17  2005 /usr/share/doc/r-doc-html/manual -> 
../../../lib/R/doc/manual
| # ls -l /usr/share/doc/r-doc-html/manual/
| total 0
| lrwxr-xr-x 1 root root 32 Jul  5 12:19 R-FAQ.html -> 
../../../R/doc/manual/R-FAQ.html
| lrwxr-xr-x 1 root root 34 Jul  5 12:19 R-admin.html -> 
../../../R/doc/manual/R-admin.html
| lrwxr-xr-x 1 root root 33 Jul  5 12:19 R-data.html -> 
../../../R/doc/manual/R-data.html
| lrwxr-xr-x 1 root root 33 Jul  5 12:19 R-exts.html -> 
../../../R/doc/manual/R-exts.html
| lrwxr-xr-x 1 root root 34 Jul  5 12:19 R-intro.html -> 
../../../R/doc/manual/R-intro.html
| lrwxr-xr-x 1 root root 33 Jul  5 12:19 R-lang.html -> 
../../../R/doc/manual/R-lang.html
| 
| 
| After the remove/install sequence it's very similar, except manual is
| a real directory, not a symlink.
| 
| Maybe some earlier version of R set it up as a symlink, and that's
| been preserved through upgrades until now?

Yes, and the preinst script for r-base-core already does a similar cleanup
(see via 'less /var/lib/dpkg/info/r-base-core.preinst) so I am adding the
following new file r-doc-html.preinst :


#!/bin/sh
#
# preinst script for the Debian GNU/Linux r-doc-html package
# This version written by Dirk Eddelbuettel <[EMAIL PROTECTED]>   

set -e

#DEBHELPER#
    
case "$1" in
    install|upgrade)
        # edd 05 Jul 2006  from with the /usr/lib -> /usr/share transition
        directory=
        if [ -h /usr/share/doc/r-doc-html/manual ]
        then
            echo "Remving symbolic link /usr/share/doc/r-doc-html/manual/"
            rm /usr/share/doc/r-doc-html/manual/
        fi
    ;;
 
    abort-upgrade)
    ;;
 
    *)
        echo "preinst called with unknown argument \`$1'" >&2
    ;;
esac

exit 0


Is it ok with you if I tag the bug as fixed, but leave it open til the next
actual package upload (which may be a 2.4.0 prerelease at the end of summer).

Regards, Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to