Re: Pin and apt
Le Sun, Aug 11, 2002 at 01:32:19PM -0400, Matt Zimmerman a écrit:
> On Sun, Aug 11, 2002 at 05:11:00PM +0200, Julien Danjou wrote:
>
> > oot@tollan:~-> apt-cache policy icewm icewm-common
> > icewm:
> > Installed: (none)
> > Candidate: 1.2.0-1
> > Version Table:
> > 1.2.0-1 0
> > 500 http://debian.mirrors.easynet.fr sid/main Packages
> > 999 file: ./ Packages
> > icewm-common:
> > Installed: (none)
> > Candidate: 1.2.0-1
> > Version Table:
> > 1.2.0-1 0
> > 500 http://debian.mirrors.easynet.fr sid/main Packages
> > 999 file: ./ Packages
>
> It looks like you are providing the same package versions from both sources.
It's right.
> Pins are used to select between distinct versions.
Why can I specify a release pin instead a version pin ?
I don't agree.
> For packages with the
> same version number (and thus should be identical), I believe apt will
> select the one which comes from the source which is listed first in
> sources.list.
root@tollan:~-> head -1 /etc/apt/sources.list
deb file:/root/deb/ ./
then apt-get update (to be sure)
root@tollan:~-> apt-get install --print-uris icewm
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
icewm-common
The following NEW packages will be installed:
icewm icewm-common
0 packages upgraded, 2 newly installed, 0 to remove and 8 not upgraded.
Need to get 499kB of archives. After unpacking 2294kB will be used.
Do you want to continue? [Y/n]
'http://debian.mirrors.easynet.fr/pool/main/i/icewm/icewm-common_1.2.0-1_i386.deb' icewm-common_1.2.0-1_i386.deb 238048 4959cbcaa274dd5ae9bb35144923538c
'http://debian.mirrors.easynet.fr/pool/main/i/icewm/icewm_1.2.0-1_i386.deb' icewm_1.2.0-1_i386.deb 260934 73f7800ef2f37da5f0a66819d397cd1e
Identical :-(
--
Julien Danjou
.''`. Debian developer
: :' : http://jdanjou.org
`. `' http://people.debian.org/~acid
`- GPG: 9A0D 5FD9 EB42 22F6 8974 C95C A462 B51E C2FE E5CD
Reply to: