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

Bug#625960: /usr/bin/apt-cache: apt-cache policy prints blocks in an arbitrary order



severity 625960 minor
thanks

On Sat, 2011-05-07 at 15:02 +0300, Eugene V. Lyubimkin wrote:
> Package: apt
> Version: 0.8.14.1
> Severity: normal
> File: /usr/bin/apt-cache
> 
> 
> Hi, the order or arguments submitted to 'apt-cache policy' is not preserved in
> the command output:
That's expected, APT totally ignores any order in which package names
are given, as it stores them in a PackageSet which is a std::set and
thus obviously does not preserve order, as std::set is a tree. They have
some defined order (as a std::set iterator has an order), but I don't
know which.
-- 
Julian Andres Klode  - Debian Developer, Ubuntu Member

See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/.





Reply to: