Package: findutils
Version: 4.1.20-6
Followup-For: Bug #67789

Would it be suitable to add some logic like this to the start of the
install process? (I'm sorry I don't know exactly where this goes)

8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if [ -f /etc/updatedb.conf.dpkg-new -a -f /etc/updatedb.conf ]
then

    PATCH_FILE=/etc/updatedb.conf.patch

    diff /etc/updatedb.conf.dpkg-new /etc/updatedb.conf |
        grep -C1 "^< PRUNEPATHS=" > ${PATCH_FILE}

    echo -n '> PRUNEPATHS="' >> ${PATCH_FILE}

    for DIR in $(
        grep -h "^PRUNEPATHS=" /etc/updatedb.conf /etc/updatedb.conf.dpkg-new |
        tr '"<=>' ' ')
    do
        if [ -d $DIR ]
        then
            ls -d $DIR
        fi
    done | sort -u | paste -s -d' ' | sed 's/$/"/g' >> ${PATCH_FILE}

        patch /etc/updatedb.conf.dpkg-new < ${PATCH_FILE}

fi
8< - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Hopefully with this in a majority of cases there would not be a change in
the PRUNEPATHS between the existing conf and the new install candidate so
it would not have to interactively prompt for confirmation on changing a
config file.

Otherwise, would it be suitable to refer to a /etc/updatedb.conf.local
along the lines of /etc/bind/named.conf using /etc/bind/named.conf.local ?

IHTH

John

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686-smp
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages findutils depends on:
ii  libc6                       2.3.2.ds1-20 GNU C Library: Shared libraries an

-- no debconf information


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

Reply via email to