Bug#734922: apt-cache showsrc shows duplicate entries
Package: apt
Version: 0.9.7.9+deb7u1
Severity: normal
Unlike, for example `apt-cache show` and `apt-cache policy`,
`apt-cache showsrc` shows duplicate entries. I can't see any good
reason for this inconsistency.
For example:
#########################################################################
$ apt-cache policy tla
tla:
Installed: (none)
Candidate: 1.3.5+dfsg-18
Version table:
1.3.5+dfsg-18 0
500 http://debian.lcs.mit.edu/debian/ wheezy/main amd64 Packages
50 http://debian.lcs.mit.edu/debian/ testing/main amd64 Packages
50 http://debian.lcs.mit.edu/debian/ unstable/main amd64 Packages
1.3.5+dfsg-16 0
500 http://debian.lcs.mit.edu/debian/ squeeze/main amd64 Packages
##########################################################################
and
##########################################################################
$ apt-cache show tla
Package: tla
Version: 1.3.5+dfsg-18
Installed-Size: 881
Maintainer: Debian QA Group <packages@qa.debian.org>
Architecture: amd64
Depends: libc6 (>= 2.11), libexpat1 (>= 1.95.8), gawk, patch
Recommends: tla-doc
Suggests: gnupg, ssh
Description-en: GNU Arch revision control system
Arch is a modern replacement for CVS, specifically designed for the
distributed development. It supports development on branches,
distributed repositories, changeset-oriented project management,
and of course, file and directory renaming.
Description-md5: b1978a310e178291e9aa549e4eefcad2
Tag: devel::rcs, implemented-in::c, interface::commandline, role::program,
suite::gnu, use::synchronizing
Section: vcs
Priority: optional
Filename: pool/main/t/tla/tla_1.3.5+dfsg-18_amd64.deb
Size: 383026
MD5sum: 2e34fa6e47043991bf968f4ae631ce1c
SHA1: 71447d826cb54a6c53b32b9b418590a8b48a46ff
SHA256: 59e55d5dd9ca5ae6d70d0c6ff9a5d9f838bf196ff559baea1205fb6aa41cd4a3
Package: tla
Priority: optional
Section: vcs
Installed-Size: 932
Maintainer: Debian QA Group <packages@qa.debian.org>
Architecture: amd64
Version: 1.3.5+dfsg-16
Depends: libc6 (>= 2.3), libexpat1 (>= 1.95.8), gawk, patch
Recommends: tla-doc
Suggests: gnupg, ssh
Filename: pool/main/t/tla/tla_1.3.5+dfsg-16_amd64.deb
Size: 383200
MD5sum: 293e07e53cef4f690cfe7e50d1831185
SHA1: 75ab0f97c5fb77aceaafcd5f7b4cf4c97e8c3a0e
SHA256: bf00971e5cbf8163c83c12e6a9aaf243987c22f5852137af3562a8e557f58962
Description-en: GNU Arch revision control system
Arch is a modern replacement for CVS, specifically designed for the
distributed development. It supports development on branches,
distributed repositories, changeset-oriented project management,
and of course, file and directory renaming.
Tag: devel::rcs, implemented-in::c, interface::commandline, qa::orphaned, role::program, suite::gnu, use::synchronizing
##########################################################################
but
##########################################################################
$ apt-cache showsrc tla
Package: tla
Binary: tla, tla-doc
Version: 1.3.5+dfsg-18
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: debhelper (>= 7), autotools-dev, time, libexpat1-dev
Architecture: any all
Standards-Version: 3.9.2
Format: 3.0 (quilt)
Files:
5729ed285e021c152b8c8b66ad98407a 1218 tla_1.3.5+dfsg-18.dsc
985debdf20daea547f3e4ef36a7c17cd 3182003 tla_1.3.5+dfsg.orig.tar.gz
65462ae1eb1449728914d42a010f06ec 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha1:
7006faee7b9fc26f11bc4a7ebff21c311300101b 1218 tla_1.3.5+dfsg-18.dsc
0d5ee989801d10b4c98ae2e1d1c7a00a88fd7647 3182003 tla_1.3.5+dfsg.orig.tar.gz
c83c34bcd03e366845ab38bce547708bc53a0645 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha256:
9565ea169ad96ab7b413f30e4124d767833662aa6e418483c434bc48d61e07ea 1218 tla_1.3.5+dfsg-18.dsc
64b6dc792074ff8bb2ddf3195901baca34ec5477e394cc5109813d06d9f812ee 3182003 tla_1.3.5+dfsg.orig.tar.gz
701f705125655ac12017428ed0b2973570908109699118df0d323e9b07ecf38e 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Package-List:
tla deb vcs optional
tla-doc deb doc optional
Directory: pool/main/t/tla
Priority: source
Section: vcs
Package: tla
Binary: tla, tla-doc
Version: 1.3.5+dfsg-18
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: debhelper (>= 7), autotools-dev, time, libexpat1-dev
Architecture: any all
Standards-Version: 3.9.2
Format: 3.0 (quilt)
Files:
5729ed285e021c152b8c8b66ad98407a 1218 tla_1.3.5+dfsg-18.dsc
985debdf20daea547f3e4ef36a7c17cd 3182003 tla_1.3.5+dfsg.orig.tar.gz
65462ae1eb1449728914d42a010f06ec 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha1:
7006faee7b9fc26f11bc4a7ebff21c311300101b 1218 tla_1.3.5+dfsg-18.dsc
0d5ee989801d10b4c98ae2e1d1c7a00a88fd7647 3182003 tla_1.3.5+dfsg.orig.tar.gz
c83c34bcd03e366845ab38bce547708bc53a0645 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha256:
9565ea169ad96ab7b413f30e4124d767833662aa6e418483c434bc48d61e07ea 1218 tla_1.3.5+dfsg-18.dsc
64b6dc792074ff8bb2ddf3195901baca34ec5477e394cc5109813d06d9f812ee 3182003 tla_1.3.5+dfsg.orig.tar.gz
701f705125655ac12017428ed0b2973570908109699118df0d323e9b07ecf38e 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Package-List:
tla deb vcs optional
tla-doc deb doc optional
Directory: pool/main/t/tla
Priority: source
Section: vcs
Package: tla
Binary: tla, tla-doc
Version: 1.3.5+dfsg-18
Maintainer: Debian QA Group <packages@qa.debian.org>
Build-Depends: debhelper (>= 7), autotools-dev, time, libexpat1-dev
Architecture: any all
Standards-Version: 3.9.2
Format: 3.0 (quilt)
Files:
5729ed285e021c152b8c8b66ad98407a 1218 tla_1.3.5+dfsg-18.dsc
985debdf20daea547f3e4ef36a7c17cd 3182003 tla_1.3.5+dfsg.orig.tar.gz
65462ae1eb1449728914d42a010f06ec 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha1:
7006faee7b9fc26f11bc4a7ebff21c311300101b 1218 tla_1.3.5+dfsg-18.dsc
0d5ee989801d10b4c98ae2e1d1c7a00a88fd7647 3182003 tla_1.3.5+dfsg.orig.tar.gz
c83c34bcd03e366845ab38bce547708bc53a0645 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Checksums-Sha256:
9565ea169ad96ab7b413f30e4124d767833662aa6e418483c434bc48d61e07ea 1218 tla_1.3.5+dfsg-18.dsc
64b6dc792074ff8bb2ddf3195901baca34ec5477e394cc5109813d06d9f812ee 3182003 tla_1.3.5+dfsg.orig.tar.gz
701f705125655ac12017428ed0b2973570908109699118df0d323e9b07ecf38e 37401 tla_1.3.5+dfsg-18.debian.tar.gz
Package-List:
tla deb vcs optional
tla-doc deb doc optional
Directory: pool/main/t/tla
Priority: source
Section: vcs
##########################################################################
Note: the showsrc entry for 1.3.5+dfsg-16 is missing, because I don't
have deb-src lines for squeeze.
Regards, Faheem
-- Package-specific info:
-- apt-config dump --
APT "";
APT::Architecture "amd64";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
APT::Install-Recommends "1";
APT::Install-Suggests "0";
APT::Authentication "";
APT::Authentication::TrustCDROM "true";
APT::NeverAutoRemove "";
APT::NeverAutoRemove:: "^firmware-linux.*";
APT::NeverAutoRemove:: "^linux-firmware$";
APT::NeverAutoRemove:: "^linux-image.*";
APT::NeverAutoRemove:: "^kfreebsd-image.*";
APT::NeverAutoRemove:: "^linux-restricted-modules.*";
APT::NeverAutoRemove:: "^linux-ubuntu-modules-.*";
APT::NeverAutoRemove:: "^gnumach$";
APT::NeverAutoRemove:: "^gnumach-image.*";
APT::Never-MarkAuto-Sections "";
APT::Never-MarkAuto-Sections:: "metapackages";
APT::Never-MarkAuto-Sections:: "restricted/metapackages";
APT::Never-MarkAuto-Sections:: "universe/metapackages";
APT::Never-MarkAuto-Sections:: "multiverse/metapackages";
APT::Never-MarkAuto-Sections:: "oldlibs";
APT::Never-MarkAuto-Sections:: "restricted/oldlibs";
APT::Never-MarkAuto-Sections:: "universe/oldlibs";
APT::Never-MarkAuto-Sections:: "multiverse/oldlibs";
APT::Update "";
APT::Update::Post-Invoke-Success "";
APT::Update::Post-Invoke-Success:: "test -x /usr/bin/apt-show-versions || exit 0 ; apt-show-versions -i";
APT::Architectures "";
APT::Architectures:: "amd64";
APT::Architectures:: "i386";
APT::Compressor "";
APT::Compressor::. "";
APT::Compressor::.::Name ".";
APT::Compressor::.::Extension "";
APT::Compressor::.::Binary "";
APT::Compressor::.::Cost "1";
APT::Compressor::gzip "";
APT::Compressor::gzip::Name "gzip";
APT::Compressor::gzip::Extension ".gz";
APT::Compressor::gzip::Binary "gzip";
APT::Compressor::gzip::Cost "2";
APT::Compressor::gzip::CompressArg "";
APT::Compressor::gzip::CompressArg:: "-9n";
APT::Compressor::gzip::UncompressArg "";
APT::Compressor::gzip::UncompressArg:: "-d";
APT::Compressor::bzip2 "";
APT::Compressor::bzip2::Name "bzip2";
APT::Compressor::bzip2::Extension ".bz2";
APT::Compressor::bzip2::Binary "bzip2";
APT::Compressor::bzip2::Cost "3";
APT::Compressor::bzip2::CompressArg "";
APT::Compressor::bzip2::CompressArg:: "-9";
APT::Compressor::bzip2::UncompressArg "";
APT::Compressor::bzip2::UncompressArg:: "-d";
APT::Compressor::xz "";
APT::Compressor::xz::Name "xz";
APT::Compressor::xz::Extension ".xz";
APT::Compressor::xz::Binary "xz";
APT::Compressor::xz::Cost "4";
APT::Compressor::xz::CompressArg "";
APT::Compressor::xz::CompressArg:: "-6";
APT::Compressor::xz::UncompressArg "";
APT::Compressor::xz::UncompressArg:: "-d";
APT::Compressor::lzma "";
APT::Compressor::lzma::Name "lzma";
APT::Compressor::lzma::Extension ".lzma";
APT::Compressor::lzma::Binary "xz";
APT::Compressor::lzma::Cost "5";
APT::Compressor::lzma::CompressArg "";
APT::Compressor::lzma::CompressArg:: "--format=lzma";
APT::Compressor::lzma::CompressArg:: "-9";
APT::Compressor::lzma::UncompressArg "";
APT::Compressor::lzma::UncompressArg:: "--format=lzma";
APT::Compressor::lzma::UncompressArg:: "-d";
APT::Compressor::::Name "";
APT::Compressor::::Extension ".";
APT::Compressor::::Binary "";
APT::Compressor::::Cost "100";
APT::Compressor::::CompressArg "";
APT::Compressor::::CompressArg:: "-9";
APT::Compressor::::UncompressArg "";
APT::Compressor::::UncompressArg:: "-d";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::mirrors "mirrors/";
Dir::State::extended_states "extended_states";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::solvers "";
Dir::Bin::solvers:: "/usr/lib/apt/solvers";
Dir::Bin::dpkg "/usr/bin/dpkg";
Dir::Bin::bzip2 "/bin/bzip2";
Dir::Bin::xz "/usr/bin/xz";
Dir::Media "";
Dir::Media::MountPath "/media/cdrom";
Dir::Log "var/log/apt";
Dir::Log::Terminal "term.log";
Dir::Log::History "history.log";
Dir::Ignore-Files-Silently "";
Dir::Ignore-Files-Silently:: "~$";
Dir::Ignore-Files-Silently:: "\.disabled$";
Dir::Ignore-Files-Silently:: "\.bak$";
Dir::Ignore-Files-Silently:: "\.dpkg-[a-z]+$";
Dir::Ignore-Files-Silently:: "\.save$";
Dir::Ignore-Files-Silently:: "\.orig$";
Acquire "";
Acquire::cdrom "";
Acquire::cdrom::mount "/media/cdrom";
Acquire::Languages "";
Acquire::Languages:: "en";
Acquire::Languages:: "none";
DPkg "";
DPkg::Pre-Invoke "";
DPkg::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi";
DPkg::Post-Invoke "";
DPkg::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/bin/apt-listchanges --apt || test $? -ne 10";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";
DPkg::Tools "";
DPkg::Tools::Options "";
DPkg::Tools::Options::/usr/bin/apt-listchanges "";
DPkg::Tools::Options::/usr/bin/apt-listchanges::Version "2";
RPM "";
RPM::Pre-Invoke "";
RPM::Pre-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper pre-install; fi";
RPM::Post-Invoke "";
RPM::Post-Invoke:: "if [ -x /usr/bin/etckeeper ]; then etckeeper post-install; fi";
CommandLine "";
CommandLine::AsString "apt-config dump";
-- /etc/apt/preferences --
Package: *
Pin: release a=testing
Pin-Priority: 50
Package: *
Pin: release a=unstable
Pin-Priority: 50
Package: *
Pin: origin backports.debian.org
Pin-Priority: 50
Package: *
Pin: release a=experimental
Pin-Priority: 1
Package: *
Pin: release a=snapshot.debian.net
Pin-Priority: 1
Package: *
Pin: origin www.deb-multimedia.org
Pin-Priority: 1
Package: *
Pin: origin deb.grml.org
Pin-Priority: 1
-- /etc/apt/sources.list --
deb http://debian.lcs.mit.edu/debian/ squeeze main non-free contrib
#deb-src http://debian.lcs.mit.edu/debian/ wheezy main non-free contrib
deb http://debian.lcs.mit.edu/debian/ wheezy main non-free contrib
deb-src http://debian.lcs.mit.edu/debian/ wheezy main non-free contrib
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates, previously known as 'volatile'
deb http://debian.lcs.mit.edu/debian/ wheezy-updates main contrib non-free
deb-src http://debian.lcs.mit.edu/debian/ wheezy-updates main contrib non-free
deb http://debian.lcs.mit.edu/debian/ testing main non-free contrib
deb-src http://debian.lcs.mit.edu/debian/ testing main non-free contrib
deb http://debian.lcs.mit.edu/debian/ unstable main non-free contrib
deb-src http://debian.lcs.mit.edu/debian/ unstable main non-free contrib
deb http://debian.lcs.mit.edu/debian/ experimental main non-free contrib
deb-src http://debian.lcs.mit.edu/debian/ experimental main non-free contrib
deb http://debian.lcs.mit.edu/debian/ wheezy-backports main contrib non-free
deb-src http://debian.lcs.mit.edu/debian/ wheezy-backports main contrib non-free
deb http://lib.stat.cmu.edu/R/CRAN/bin/linux/debian wheezy-cran3/
deb-src http://lib.stat.cmu.edu/R/CRAN/bin/linux/debian wheezy-cran3/
deb http://www.deb-multimedia.org wheezy main non-free
deb-src http://www.deb-multimedia.org wheezy main non-free
-- System Information:
Debian Release: 7.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (500, 'oldstable'), (50, 'unstable'), (50, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages apt depends on:
ii debian-archive-keyring 2012.4
ii gnupg 1.4.12-7+deb7u3
ii libapt-pkg4.12 0.9.7.9+deb7u1
ii libc6 2.13-38
ii libgcc1 1:4.7.2-5
ii libstdc++6 4.7.2-5
apt recommends no packages.
Versions of packages apt suggests:
pn apt-doc <none>
ii aptitude 0.6.8.2-1
ii dpkg-dev 1.16.12
ii python-apt 0.8.8.2
ii wajig 2.7.3
ii xz-utils 5.1.1alpha+20120614-2
-- no debconf information
Reply to: