Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Nov 2021 12:31:08 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 259696] pkg search -q -o does not work properly
Message-ID:  <bug-259696-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259696

            Bug ID: 259696
           Summary: pkg search -q -o does not work properly
           Product: Base System
           Version: 13.0-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

Hi,



By default *pkg search* displays description on the right, like that:

% pkg search salt=20=20=20
p5-Crypt-Salt-0.01_1           Perl extension to generate a salt to be fed =
into
crypt
p5-Crypt-SaltedHash-0.09       Perl extension to work with salted hashes
py38-salt-3004_1               Distributed remote execution and configurati=
on
management system
py38-saltyrtc.server-5.0.1_1   SaltyRTC compliant signalling server
rubygem-hammer_cli_foreman_salt-0.0.5 SaltStack integration commands for Ha=
mmer
CLI
rubygem-smart_proxy_salt-4.0.0 SaltStack Plug-In for Foreman's Smart Proxy



With -o it should display origins instead of package names, that works:

% pkg search -o salt=20=20=20
security/p5-Crypt-Salt         Perl extension to generate a salt to be fed =
into
crypt
security/p5-Crypt-SaltedHash   Perl extension to work with salted hashes
sysutils/py-salt               Distributed remote execution and configurati=
on
management system
net/py-saltyrtc.server         SaltyRTC compliant signalling server
sysutils/rubygem-hammer_cli_foreman_salt SaltStack integration commands for
Hammer CLI
sysutils/rubygem-smart_proxy_salt SaltStack Plug-In for Foreman's Smart Pro=
xy



With just -q it should not display description on the right - and that also
works:

% pkg search -q salt=20
p5-Crypt-Salt-0.01_1
p5-Crypt-SaltedHash-0.09
py38-salt-3004_1
py38-saltyrtc.server-5.0.1_1
rubygem-hammer_cli_foreman_salt-0.0.5
rubygem-smart_proxy_salt-4.0.0



So to the point - with both -q and -o should print only origins without
description on the right side, but it prints package names instead:

% pkg search -q -o salt=20
p5-Crypt-Salt-0.01_1
p5-Crypt-SaltedHash-0.09
py38-salt-3004_1
py38-saltyrtc.server-5.0.1_1
rubygem-hammer_cli_foreman_salt-0.0.5
rubygem-smart_proxy_salt-4.0.0



It should be like that:

% pkg search -o -q salt=20=20=20
security/p5-Crypt-Salt
security/p5-Crypt-SaltedHash
sysutils/py-salt
net/py-saltyrtc.server
sysutils/rubygem-hammer_cli_foreman_salt
sysutils/rubygem-smart_proxy_salt



Regards.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259696-227>