Date: Mon, 8 May 2000 13:23:30 -0700 (PDT) From: Kris Kennaway <kris@FreeBSD.org> To: Satoshi - Ports Wraith - Asami <asami@freebsd.org> Cc: Kenneth Wayne Culver <culverk@wam.umd.edu>, freebsd-current@freebsd.org Subject: Re: proposed pkg_delete change Message-ID: <Pine.BSF.4.21.0005081314120.96084-100000@freefall.freebsd.org> In-Reply-To: <vqc66spuuo1.fsf@silvia.hip.berkeley.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On 8 May 2000, Satoshi - Ports Wraith - Asami wrote: > Be careful about that "aren't currently used by anything else" part. > If you already had a port A installed, and then later installed B > (which just happens to depend on A), you could get A erased when you > erase B. Have a -n mode (-nothing) which prints a list of actions it would take so you can review. > You probably need to change pkg_add too, so that it will note > somewhere on A's dependency list that it was installed by which port, > and let pkg_delete check it. This could be done with an extra binary field in +REQUIRED_BY showing whether the package was installed by a parent. pkg_delete would recursively remove it if 1) There was only a single +REQUIRED_BY entry, and 2) The parent package bit is set. Kris ---- In God we Trust -- all others must submit an X.509 certificate. -- Charles Forsythe <forsythe@alum.mit.edu> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0005081314120.96084-100000>