Hi,

Today I was searching for postgresql-server package using pkg_info,
but I didn't found that (OpenBSD-6.7-STABLE)!

$ pkg_info -Q postgres
dovecot-postgresql-2.3.10.1v0

After a bit of research I found the problem in this file:

/usr/libdata/perl5/OpenBSD/PackageRepositoryList.pm:
...
sub match_locations
{
        my ($self, @search) = @_;
        my $result = [];
        for my $repo (@{$self->{l}}) {
                my $l = $repo->match_locations(@search);
                if ($search[0]->{keep_all}) {
                        push(@$result, @$l);
                } elsif (@$l > 0) {
                        return $l;
                }
        }
        return $result;
}

which searches for matched packages in packages-stable before packages
url;  so I figured out that I should use -aQ options:

$ pkg_info -aQ postgres
check_postgres-2.25.0
debug-qt5-postgresql-5.13.2
dovecot-postgresql-2.3.10.1v0
dovecot-postgresql-2.3.10v0
kamailio-postgresql-5.0.6p0
orthanc-plugin-postgresql-2.0p2
postgresql-client-12.2
postgresql-contrib-12.2
postgresql-docs-12.2
postgresql-odbc-10.02.0000p0
postgresql-pg_upgrade-12.2
postgresql-pllua-2.0.4
postgresql-plpython-12.2
postgresql-plr-8.4
postgresql-previous-11.6
postgresql-server-12.2
postgresql_autodoc-1.40p1
qt3-postgresql-3.8p12
qt4-postgresql-4.8.7p7
qt5-postgresql-5.13.2
sope-postgres-4.3.0
tdbc-postgres-1.0.6

Anyway, I recommend following patch for www/faq/faq15.html:

cvs diff: Diffing .
Index: faq15.html
===================================================================
RCS file: /cvs/www/faq/faq15.html,v
retrieving revision 1.184
diff -u -p -r1.184 faq15.html
--- faq15.html  14 Aug 2019 13:07:46 -0000      1.184
+++ faq15.html  16 Jun 2020 19:29:53 -0000
@@ -148,10 +148,10 @@ To search for any given package name, us
 <a href="https://man.openbsd.org/pkg_info";>pkg_info(1)</a>.
 
 <pre class="cmdbox">
-$ <b>pkg_info -Q unzip</b>
-lunzip-1.8
-unzip-6.0p9
-unzip-6.0p9-iconv
+$ <b>pkg_info -aQ unzip</b>
+lunzip-1.11
+unzip-6.0p13
+unzip-6.0p13-iconv
 </pre>
 
 Another way to find what you're looking for is with the <code>pkglocate</code>

Reply via email to