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

Re: dpkg bug? (regarding smartlist)



-----BEGIN PGP SIGNED MESSAGE-----

On Sun, 24 May 1998, Raul Miller wrote:

> If you want links to survive upgrades
> in this environment, use symlinks (they'll even give you a "file
> not found" if the file is removed).

Ok, latest smartlist already uses symlinks, fortunately.
What should be done with already existing hardlinks?

Should I include something like this in the preinst?:

#!/bin/sh

filestosymlink="rc.submit rc.init rc.request help.txt subscribe.txt \
                unsubscribe.txt archive.txt reject"

for a in `ls`; do
  if [ -d $a ]; then
    cd $a
    if [ -d archive ]; then
      for b in $filestosymlink; do
        if [ -f $b ]; then
          diff $b ../.etc/$b > /dev/null && (rm -f $b; ln -s ../.etc/$b)
        fi
      done
    fi
    cd ..
  fi
done

[ This would be just a first draft, the real "hard2sym.sh" would probably
  have to compare real inode numbers, and probably take care of stopping the
  list server also ].

Should I just warn the user in smartlist.preinst so that he runs this
script by hand if he wants?

Or should I just post this script (or a better one) to debian-user with a
prominent Subject line "Please READ this before UPGRADING smartlist"

Opinions?

Thanks.

-----BEGIN PGP SIGNATURE-----
Version: 2.6.3ia
Charset: latin1

iQCVAgUBNWld9CqK7IlOjMLFAQEUvwP9EH5ojFwSSbZ5HopKu55qC4d91/EC092i
XCdEi8RMLRrT8kH5wBo++XSq6sZQ4KwcSDkFRCsNhfAj7FAWob1btN/Sx5L4Ht0f
FXAqrGAdvj4U2RdUWDX24iZEWZYFPg5ZJwcBBJWog7Akw+CKb/WUxLtYOMhBBy+z
c0w/MN91Zho=
=YCGv
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: