Bug#419188: add support for code name in pinning mechanism
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Package: apt
Version: 0.6.46.4-0.1
Severity: wishlist
Hello,
Starting with Etch, Debian Installer doesn't put suites anymore in
/etc/apt/sources.list. Taking that into account it would be nice if
codename based pinning would be possible, since the Release files
provide the needed information:
head /var/lib/apt/lists/ftp.ro.debian.org_debian_dists_etch_Release
Origin: Debian
Label: Debian
Suite: stable
Version: 4.0r0
Codename: etch
Date: Sun, 08 Apr 2007 10:41:22 UTC
Architectures: alpha amd64 arm hppa i386 ia64 mips mipsel powerpc
s390 sparc
Components: main contrib non-free
Description: Debian 4.0r0 Released 8 April 2007
MD5Sum:
Since "c=" is taken already by "component", "c" for codename doesn't
work :-/ :
========
for (unsigned J = 0; Fragments[J] != 0; J++)
{
if (strlen(Fragments[J]) < 3)
continue;
if (stringcasecmp(Fragments[J],Fragments[J]+2,"v=") == 0)
RelVerStr = Fragments[J]+2;
else if (stringcasecmp(Fragments[J],Fragments[J]+2,"o=") == 0)
RelOrigin = Fragments[J]+2;
else if (stringcasecmp(Fragments[J],Fragments[J]+2,"a=") == 0)
RelArchive = Fragments[J]+2;
else if (stringcasecmp(Fragments[J],Fragments[J]+2,"l=") == 0)
RelLabel = Fragments[J]+2;
else if (stringcasecmp(Fragments[J],Fragments[J]+2,"c=") == 0)
RelComponent = Fragments[J]+2;
}
========
- --- System information. ---
Architecture: amd64
Kernel: Linux 2.6.18-4-amd64
Debian Release: 4.0
900 stable security.debian.org
900 stable ftp.ro.debian.org
900 stable eddyp.homelinux.net
700 testing snapshot.debian.net
- --- Package information. ---
Depends (Version) | Installed
==========================================-+-================
libc6 (>= 2.3.5-1) | 2.3.6.ds1-13
libgcc1 (>= 1:4.1.1-12) | 1:4.1.1-21
libstdc++6 (>= 4.1.1-12) | 4.1.1-21
debian-archive-keyring | 2007.02.19
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGIJ2HY8Chqv3NRNoRAhMPAJ9zmXKyUv/b/iJGwh2umWpyd1WLaQCeLvP4
RMq2Fav1c4XgfkE2cqV4MzQ=
=RYIX
-----END PGP SIGNATURE-----
Reply to: