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

Re: [Aptitude-devel] aptitude ~A question

Hi Sven and Axel,

Thank you for your explanation, I understand a bit better the logic. But
there is still something that doesn't quite match. Please consider the

apt-cache policy | grep 'a='
    release a=now
    release v=14.04,o=LP-PPA-opencpn-opencpn,a=trusty,n=trusty,l=OpenCPN,c=main
    release o=Debian Mozilla Team,a=jessie-backports,n=jessie-backports,l=Debian Mozilla Team,c=firefox-release
    release v=8.6,o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=non-free
    release v=8.6,o=Unofficial Multimedia Packages,a=stable,n=jessie,l=Unofficial Multimedia Packages,c=main
    release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=contrib
    release o=Debian Backports,a=jessie-backports,n=jessie-backports,l=Debian Backports,c=main
    release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=non-free
    release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=contrib
    release v=8,o=Debian,a=stable,n=jessie,l=Debian-Security,c=main
    release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=contrib
    release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=non-free
    release v=8.6,o=Debian,a=stable,n=jessie,l=Debian,c=main

Now let's plug the value of a in 'aptitude search ~A$a~i | wc -l':

a=              aptitude search ~A[$a]~i | wc -l 					dpkg -l | grep ^ii | wc -l
trusty                                    16
jessie$                                    0
jessie-backports                         248
stable                                  3243
TOTAL 3507 3349 now 3349 3349

so 3507 ≠ 3349. Both figures should be equal as I understand. It seems
that some packages are counted two or more times or my calculation is
plain wrong.



PS: the trusty part is for opencpn, which is currently not in Debian.

Reply to: