Date: Fri, 17 Jul 2009 14:38:55 +0100 From: Florent Thoumie <flz@FreeBSD.org> To: Andriy Gapon <avg@icyb.net.ua> Cc: Garrett Cooper <yanefbsd@gmail.com>, FreeBSD Ports <freebsd-ports@freebsd.org>, Maxim Sobolev <sobomax@freebsd.org> Subject: Re: pkg_info: package files checked before installed packages Message-ID: <a01628140907170638y47296d48m722a2c44395bcd69@mail.gmail.com> In-Reply-To: <4970B81B.906@icyb.net.ua> References: <497082F3.2080606@icyb.net.ua> <4970B81B.906@icyb.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 16, 2009 at 5:38 PM, Andriy Gapon<avg@icyb.net.ua> wrote: > on 16/01/2009 14:52 Andriy Gapon said the following: >> [people who "touched" pkg_info recently are CC-ed] >> >> Please see a prior discussion here: >> http://docs.freebsd.org/cgi/mid.cgi?496F360E.1000508 >> and especially this post: >> http://docs.freebsd.org/cgi/mid.cgi?7d6fde3d0901152330p32c51b64i212c660c0aaeb04c >> >> So it is obvious from code in usr.sbin/pkg_install/info/perform.c, >> function pkg_do() that if for a given name there is both a package file >> in a defined packages directory and also an installed package, then >> pkg_info would work on the package file. > > Additional info - this issue manifests itself if PKG_PATH env var points > to a directory with (full of) packages. Apparently portupgrade sets it > so (maybe -p option is needed for that). > >> I do not think that this is either obvious/intuitive or even correct. >> At the very list there should be an option to control this behavior. >> >> I have a system where I keep package files for all installed/built >> packages and pkg_info acts very nasty there, especially when working on >> all packages. Is there a patch addressing this issue? -- Florent Thoumie flz@FreeBSD.org FreeBSD Committer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a01628140907170638y47296d48m722a2c44395bcd69>