[Aptitude-devel] Bug#348679: aptitude: doesn't do downgrade for packages pinned high

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Tue Dec 8 00:20:16 UTC 2015


Control: tags -1 + pending


Hi Marc,

2006-01-18 11:52 Marc Haber:
>Package: aptitude
>Version: 0.4.1-1experimental1
>Severity: normal
>
>Hi,
>
>I have pinned unstable to 2000 on my box:
>
>Package: *
>Pin: release o=Debian,a=unstable
>Pin-Priority: 2000
>
>This is obviously processed correctly:
>
>$ apt-cache policy apt
>apt:
>  Installed: 0.6.43.2exp1
>  Candidate: 0.6.43.1
>  Version table:
> *** 0.6.43.2exp1 0
>        -10 http://debian.debian.zugschlus.de experimental/main Packages
>        100 /var/lib/dpkg/status
>     0.6.43.1 0
>       2000 http://debian.debian.zugschlus.de sid/main Packages
>     0.6.43exp2 0
>        500 http://zg.debian.zugschlus.de zg/sid/main Packages
>     0.5.28.6 0
>        500 http://debian.debian.zugschlus.de sarge/main Packages
>$
>
>Also, apt-get dist-upgrade plans to do some downgrade:
>
>$ sudo apt-get dist-upgrade
>Reading package lists... Done
>Building dependency tree... Done
>Calculating upgrade... Done
>The following NEW packages will be installed:
>  libslang1
>The following packages will be DOWNGRADED:
>  apt apt-utils aptitude exim4 exim4-base exim4-config exim4-daemon-light
>  eximon4 jed jed-common libapt-pkg-perl libnasl2 libnessus2 python-apt
>  python2.3-apt
>0 upgraded, 1 newly installed, 15 downgraded, 0 to remove and 0 not upgraded.
>Need to get 7200kB of archives.
>After unpacking 512kB of additional disk space will be used.
>Do you want to continue [Y/n]? n
>Abort.
>$
>
>But aptitude doesn't.
>
>$ sudo aptitude dist-upgrade
>Reading package lists... Done
>Building dependency tree... Done
>Reading extended state information
>Initializing package states... Done
>Building tag database... Done
>No packages will be installed, upgraded, or removed.
>0 packages upgraded, 0 newly installed, 0 to remove and 15 not upgraded.
>Need to get 0B of archives. After unpacking 0B will be used.
>$
>
>Additionally, "U" in interactive aptitude doesn't do anything as well.

Thanks for the report.

I commited a fix to VCS and all of the modalities of upgrades now work
with this.  Will be present in the next release, so marking as +pending.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list