Date: Tue, 01 Jul 2014 12:03:29 +0200 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: pkg@freebsd.org Subject: Re: "pkg upgrade" doesn't Message-ID: <86y4wde6q6.fsf@nine.des.no> In-Reply-To: <864mz1fno4.fsf@nine.des.no> ("Dag-Erling =?utf-8?Q?Sm=C3=B8r?= =?utf-8?Q?grav=22's?= message of "Tue, 01 Jul 2014 11:12:11 %2B0200") References: <864mz1fno4.fsf@nine.des.no>
next in thread | previous in thread | raw e-mail | index | archive | help
Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > BTW, it would be nice to have a) a query pattern that prints the > repository a package was installed from [...] So apparently, this is implemented but not available. If I add an entry for 'R' to accepted_query_flags[] in src/query.c, I can use %R, but it doesn't work: % ./src/pkg-static query %R pkg-devel (null) % pkg info pkg-devel | grep repos repository : des-local that's because %R is implemented as pkg_printf("%N") which returns PKG_REPONAME ("reponame"), which doesn't seem to exist at this point. >From reading pkg_jobs.c, I get the impression that PKG_REPONAME is only valid for the in-memory version of pkg constructed from the repo manifest during "pkg upgrade", is that correct? In that case, fixing %R should be a simple matter of fetching the "repository" annotation if PKG_REPONAME is not available. See pull request #855. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86y4wde6q6.fsf>