[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#983081: marked as done (apt-cache search -n should sort ouput alphabetically)



Your message dated Fri, 19 Feb 2021 11:16:54 +0100
with message-id <20210219111006.GA54205@debian.org>
and subject line Re: Bug#983081: apt-cache search -n should sort ouput alphabetically
has caused the Debian Bug report #983081,
regarding apt-cache search -n should sort ouput alphabetically
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
983081: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=983081
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: apt
Version: 1.8.2.2
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

When doing... 

apt-cache search -n grub

...the content is output unsorted. One has to add '| sort' to get alphabetically sorted output. IMHO, apt-cache should always provide alphabetically-sorted output.

- -- System Information:
Debian Release: 10.8
  APT prefers stable-debug
  APT policy: (500, 'stable-debug'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-14-amd64 (SMP w/8 CPU cores)
Locale: LANG=fi_FI.utf8, LC_CTYPE=fi_FI.utf8 (charmap=UTF-8), LANGUAGE=fi_FI.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt depends on:
ii  adduser                 3.118
ii  debian-archive-keyring  2019.1
ii  gpgv                    2.2.12-1+deb10u1
ii  libapt-pkg5.0           1.8.2.2
ii  libc6                   2.28-10
ii  libgcc1                 1:8.3.0-6
ii  libgnutls30             3.6.7-4+deb10u6
ii  libseccomp2             2.3.3-4
ii  libstdc++6              8.3.0-6

Versions of packages apt recommends:
ii  ca-certificates  20200601~deb10u2

Versions of packages apt suggests:
pn  apt-doc                      <none>
pn  aptitude | synaptic | wajig  <none>
ii  dpkg-dev                     1.19.7
ii  gnupg                        2.2.12-1+deb10u1
ii  powermgmt-base               1.34

- -- no debconf information

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEyJACx3qL7GpObXOQrh+Cd8S017YFAmAvTtgACgkQrh+Cd8S0
17Z84Q//dbYwGNQj4xZ9RSmdDP5PXArMGQ/muFH7f0VU7Hlkxr7CN23zyU8eD5fX
r1ULlkrUW0F7Re60vStnHfwXjMHHyyvJhTDlUnd9ecQ7u5xVSwfFfSDCI7Z3vo79
fwRvcaKICihIDO64HsiOHj/2/L7uv/5amAVDqZQfElUD7YBm/3GTcyYqiNGNr3u0
+t0st5F3niN/R2mf/SFIjTl04Qd2ayxzPwAl8aMmPu5ZKOVAPbZ95niSCLxV8wOL
3a/aRH26odTMY6gaJWz8HZSFdLDM/eMmPkDw3cTg1/KlebslUo0rGbV7GLX/P12i
z1Oo1t7WeVxcNihsd3V0aSZoAd6d69QqBWLbRdqlRN/q+5YhE3WAbfrxNR5LbQu6
emjCTfQQRB3Zu33Z0Gt9rMeimiT984yCuFV97tm1+ojJ+M79lfZ3KMaI4Q1yOarz
RYSqF1fnmLitqmoLNmo0d759jOJypWP7ys1utwHUTi0AbrbzqfXfvQxTy6rqGM/b
09SALxYinBWX8gjYQmbXiBHV36f8WTaiOkAFLqFBux1HV881mLFMIfq047J2ZpSq
tJrh5ul3wszcFRVzwFXnCRvqYZDO4H45Ei2a1daSYdZWV0ohakGZe33HK6kMXb0W
/TkfXNgnXwW+myy385HRyBoChN5boi7E1tGCUvp+GBLp96GasAA=
=zIEe
-----END PGP SIGNATURE-----

--- End Message ---
--- Begin Message ---
On Fri, Feb 19, 2021 at 07:38:32AM +0200, Martin-Éric Racine wrote:
> Package: apt
> Version: 1.8.2.2
> Severity: normal
> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 

> When doing... 
> 
> apt-cache search -n grub
> 
> ...the content is output unsorted. One has to add '| sort' to get
> alphabetically sorted output. IMHO, apt-cache should always provide
> alphabetically-sorted output.

`apt search` sorts its output, which makes sense being targetted at
end-users. `apt-cache search`, being targetted at scripts, benefits from
producing output as it goes along so scripts work faster.

Also as you pointed out, the output is fixed, so if you do want to look
at it, despite not being a script yourself, you're free to just pipe it
to sort, no need for us to go to the trouble of doing that.
-- 
debian developer - deb.li/jak | jak-linux.org - free software dev
ubuntu core developer                              i speak de, en

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply to: