Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 May 2020 07:38:19 -0700
From:      Jose Quinteiro <freebsd@quinteiro.org>
To:        freebsd-ports <freebsd-ports@freebsd.org>
Subject:   Have pkg-rquery only return results for highest priority repo
Message-ID:  <3343cf30-fdfa-f400-2494-5c668f91d3e8@quinteiro.org>

next in thread | raw e-mail | index | archive | help
Setup:

- Stock /etc/pkg/FreeBSD.conf
- The following in /usr/local/etc/pkg/repos/local.conf

local: {
	url: "file:///some/long/path",
	enabled: yes,
	priority: 1,
}

Querying for a package that exists in both repos yields apparently
duplicate results:

$ pkg rquery '%n' dokuwiki
dokuwiki
dokuwiki

Adding the %R pattern disambiguates things:

$ pkg rquery '%R-%n' dokuwiki
FreeBSD-dokuwiki
local-dokuwiki

Is there a way to ask rquery to only return results for the highest
priority repo? (Local in this case).

Thanks,
Jose



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3343cf30-fdfa-f400-2494-5c668f91d3e8>