Date: Wed, 26 Apr 2006 13:41:49 +0200 From: Pav Lucistnik <pav@FreeBSD.org> To: Alastair Rankine <arsptr@optusnet.com.au> Cc: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/96301: [patch] Upgrade instiki to 0.11.0 Message-ID: <1146051709.41935.50.camel@pav.hide.vol.cz> In-Reply-To: <E8AEFE32-FD77-4AEB-A0AC-B9079DFD019C@optusnet.com.au> References: <200604260830.k3Q8Un8s031542@freefall.freebsd.org> <C701D6DB-6DAB-4A70-AD37-A3B3B4A35749@optusnet.com.au> <1146050157.41935.37.camel@pav.hide.vol.cz> <E8AEFE32-FD77-4AEB-A0AC-B9079DFD019C@optusnet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
--=-6qINKDcboEBrtrwpTl4x Content-Type: text/plain; charset=ISO8859-2 Content-Transfer-Encoding: quoted-printable Alastair Rankine p=ED=B9e v st 26. 04. 2006 v 21:31 +1000: > >>> This port leaves one file behind when uninstalled: > >>> > >>> /usr/local/instiki/db/production.db.sqlite3 > >>> > >>> should I add it to the pkg-plist? > >> > >> That is the database file for your wiki. > >> > >> It's user data, hence deliberately excluded from the pkg-plist. > > > > So, what will we do with it? It must not be left behind. > > I assume there is some kind of empty "default" database in there? > > That could be safely removed, if it's not modified by the user. > > > > Not having it in plist also means, that it will not be installed from > > package. >=20 > How can the port detect whether the database has been modified by the =20 > user? Or to put it another way, how would the port block the deletion =20 > of this file on uninstall, if the database had been modified? >=20 > What's the usual resolution in cases like this? I would suggest two possible solutions 1) Install an empty database as empty.db and compare with production.db on deinstall, if the files are identical, delete both 2) Move database into /var/db/instiki where it can be left after deinstalation without anyone complaining. --=20 Pav Lucistnik <pav@oook.cz> <pav@FreeBSD.org> Some programmers are able to write FORTRAN in any language. --=-6qINKDcboEBrtrwpTl4x Content-Type: application/pgp-signature; name=signature.asc Content-Description: Toto je =?iso-8859-2?Q?digit=E1ln=EC?= =?ISO-8859-1?Q?_podepsan=E1?= =?iso-8859-2?Q?_=E8=E1st?= =?ISO-8859-1?Q?_zpr=E1vy?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQBET1x9ntdYP8FOsoIRAkEVAKDOIMmSUM4aO5zv0OUWpFIxnk9Z/gCeMGu9 NqVSQSiFkSspemuuJTwxaaw= =C6B4 -----END PGP SIGNATURE----- --=-6qINKDcboEBrtrwpTl4x--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1146051709.41935.50.camel>