Bug#760868: apt-cache: search with -n and multiple values does not work
Control: tag -1 pending
On Mon, Sep 08, 2014 at 07:29:19PM +0200, Patrick Matthäi wrote:
> Package: apt
> Version: 1.0.7
> Severity: important
>
> Hello,
> I wanted to check if I have got installed the most recent Linux image for
> development, but something seems quite strange with the search algorithm
> (ACKed by another DD):
>
> e.g. I have still localy installed "linux-image-3.10-2-amd64" and "linux-image-3.14-1-amd64"
> and "linux-image-3.14-2-amd64" is available in the repository:
>
> root@exez:~# apt-cache policy linux-image-3.14-2-amd64
> linux-image-3.14-2-amd64:
> Installed: (none)
> Candidate: 3.14.15-2
> Version table:
> 3.14.15-2 0
> 500 http://ftp.de.debian.org/debian/ sid/main amd64 Packages
>
>
> Now I search for new images "as every time":
> root@exez:~# apt-cache search -n linux image amd64
> linux-image-3.14-2-amd64-dbg - Debugging symbols for Linux 3.14-2-amd64
> linux-image-3.14-2-rt-amd64-dbg - Debugging symbols for Linux 3.14-2-rt-amd64
> linux-image-amd64 - Linux for 64-bit PCs (meta-package)
> linux-image-amd64-dbg - Debugging symbols for Linux amd64 configuration (meta-package)
> linux-image-rt-amd64-dbg - Debugging symbols for Linux rt-amd64 configuration (meta-package)
> linux-image-3.16-trunk-amd64-dbg - Debugging symbols for Linux 3.16-trunk-amd64
Hi,
thanks for your bug report. I just fixed the issue in git, and it
will be part of the next upload to experimental.
[...]
> Looks broken for me and it is not limited with our linux-image package names. For example
> mysql-server (5.5 and 5.6):
>
> root@exez:~# apt-cache search -n mysql server | grep mysql-server-5
> mysql-server-5.5 - MySQL database server binaries and system database setup
> mysql-server-5.6 - MySQL database server binaries and system database setup
> root@exez:~# apt-cache search -n mysql server 5| grep mysql-server-5
> root@exez:~#
>
> root@exez:~# apt-cache search -n mysql server 5
> mariadb-server-core-5.5 - MariaDB database core server files
> root@exez:~#
>
> Don't ask me why he found mariadb-server-core-5.5, because:
It's also looking at provides.
--
Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.
Be friendly, do not top-post, and follow RFC 1855 "Netiquette".
- If you don't I might ignore you.
Reply to: