Re: apt 0.6 in experimental
On Sunday 28 December 2003 20:32, Joey Hess wrote:
> With apt 0.6.1, I have this in sources.list:
>
> deb http://http.us.debian.org/debian/ ../project/experimental main contrib
> non-free
>
> I thought that apt was supposed to auto-pin experimental to not upgrade
> to packages in it automatically. However:
>
> joey@dragon:~>apt-cache policy diff
> diff:
> Installed: 2.8.1-6
> Candidate: 2.8.4-0.0
> Version Table:
> 2.8.4-0.0 0
> 500 http://http.us.debian.org ../project/experimental/main Packages
> *** 2.8.1-6 0
> 500 http://http.us.debian.org unstable/main Packages
> 100 /var/lib/dpkg/status
Confirmed for 0.6.1, but not for 0.5.16.
Here is how apt 0.5.16 performs for the case:
apt-cache policy diff
diff:
Installed: 2.8.1-6
Candidate: 2.8.1-6
Version Table:
2.8.4-0.0 0
1 ftp://ftp.bg.debian.org ../project/experimental/main Packages
*** 2.8.1-6 0
500 ftp://ftp.bg.debian.org testing/main Packages
500 ftp://ftp.bg.debian.org unstable/main Packages
100 /var/lib/dpkg/status
2.7-29 0
500 ftp://ftp.bg.debian.org stable/main Packages
apt-get upgrade......
em8300-headers imlib-base jdk1.1 libdirectfb-dev libxft2
The following packages will be upgraded
apt apt-doc apt-utils cpp-3.2 g++-3.2 gcc-3.2 gcc-3.2-base icewm...
> And indeed it wants to download diff and several other packages from
> experimental. I downgraded to apt 0.5.17, and it behaves the same. Am I
> wrong about the default experimental pinning?
You are right apt < 0.5.16. The man page of apt_preferences(5) [1] says:
CANDIDATE VERSION POLICY
Internally APT maintains a list of all available versions for all packages. If
you place multiple releases or vendors in your sources.list(5) file then
these features are available. By default APT selects the highest version from
all automatic sources. Some sources, such as project/experimental are marked
Not Automatic - these fall to the bottom of the selection pile.
[1] http://www.fifi.org/cgi-bin/man2html/usr/share/man/man5/
apt_preferences.5.gz
--
pub 4096R/0E4BD0AB 2003-03-18 <keyserver.bu.edu>
1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
Reply to: