Package: devscripts
Version: 2.10.26
Severity: important

Hello,

in case the output below wouldn't be self-explicative, it seems that
`apt-cache showsrc $PKG` doesn't return unstable versions first, which
renders debcheckout quite useless if you have more than unstable in your
apt sources.

=====
[EMAIL PROTECTED]:~/var/lib/git$ debcheckout -a cl-gd
can't use authenticated mode on repository \
 'http://cl-debian.alioth.debian.org/repository/pvaneynd/cl-gd/' since \
 it is not a known repository (e.g. alioth)

[EMAIL PROTECTED]:~/var/lib/git$ apt-cache policy cl-gd
cl-gd:
  Installed: (none)
  Candidate: 0.5.6-2
  Version table:
     0.5.6-2 0
        990 http://cdn.debian.net sid/main Packages
     0.5.6-1 0
        500 http://cdn.debian.net testing/main Packages

[EMAIL PROTECTED]:~/var/lib/git$ apt-cache showsrc cl-gd
Package: cl-gd
Binary: cl-gd
Version: 0.5.6-1
[...]
Vcs-Darcs: http://cl-debian.alioth.debian.org/repository/pvaneynd/cl-gd/

Package: cl-gd
Binary: cl-gd
Version: 0.5.6-2
[...]
Vcs-Git: http://git.debian.org/git/pkg-common-lisp/cl-gd.git

Package: cl-gd
Binary: cl-gd
Version: 0.5.1-1
[...]

[EMAIL PROTECTED]:~/var/lib/git$
=====

I filed the bug to devscripts after a discussion on #d-devel:
=====
[22:09:21] <gismo> why `apt-cache showsrc $PKG` returns versions in a
                   different order than `apt-cache show $PKG`?  i.e.,
                   not starting the latest in unstable
[22:09:49] <gismo> not starting FROM the..., obviously
[22:10:21] <madduck> they use two different indices
[22:11:16] <gismo> madduck: well, this renders `debcheckout -a`
                   completely useless (and it's a bug IMHO)
[22:11:24] <madduck> uh oh
[22:11:27] <madduck> file it...
[22:11:32] <eigood> that's not a bug in apt
[22:11:42] <gismo> eigood: why?
[22:11:46] <gismo> madduck: devscripts or apt?
[22:11:47] <eigood> there is nothing that says what order apt should
                    output things in
[22:11:52] <madduck> gismo: devscripts
[22:11:57] <gismo> eigood: consistency?
[22:12:00] <gismo> madduck: thx
[22:12:07] <eigood> and, even then, what is available thru a 'deb'
                    line may not be in sync with a 'deb-src' line
[22:12:40] <eigood> deb .... main
[22:12:46] <eigood> deb-src ... pool ....
[22:12:50] <eigood> deb-src .... contrib
[22:12:55] <eigood> deb .... non-free
[22:12:58] <eigood> deb-src ... main
[22:12:59] <gismo> eigood: sure, but at least I'd like to have the
                   same order for both (i.e., from the more recent to
                   the oldest)
[22:13:00] <eigood> etc
[22:13:18] <gismo> eigood: anyway, I'm filing it for devscripts and
                   let's see then
[22:13:22] <eigood> er, the second is supposed to be from snapshot
[22:14:22] <gismo> eigood: can I quote you on the bug report?
[22:14:38] <eigood> sure
[22:14:55] <gismo> eigood: thx
[22:15:08] <eigood> instead of having 2 lines, with main contrib
                    non-free, both deb/deb-src, an admin may split
                    those, and put them in some odd order
[22:15:20] <eigood> in an ideal world, you could have 2 options in
                    such cases:
[22:15:37] <eigood> order based on sources.list, or alphabetical
[22:15:53] <madduck> increasing version number
[22:16:20] <eigood> but in any event, it's not specified what should
                    be done
[22:16:44] <gismo> eigood: it's neither of based on sources.list nor
                   alphabetical: it's testing -> unstable -> stable
[22:20:13] <gismo> madduck: BTW, can I quote you, too?
[22:20:24] <madduck> always
[22:20:44] <madduck> though i didn't really contribute anything, did
                     i? :)
[22:21:54] <gismo> madduck: at least the choice of the package to file
                   the bug to ;-)
=====

Thx, bye,
Gismo / Luca

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.24-1-amd64 (SMP w/2 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 devscripts depends on:
ii  debianutils                   2.28.4     Miscellaneous utilities specific t
ii  dpkg-dev                      1.14.18    package building tools for Debian
ii  libc6                         2.7-10     GNU C Library: Shared libraries
ii  perl                          5.8.8-12   Larry Wall's Practical Extraction 
ii  sed                           4.1.5-7    The GNU sed stream editor

Versions of packages devscripts recommends:
ii  at                 3.1.10.1              Delayed job execution and batch pr
ii  bsd-mailx [mailx]  8.1.2-0.20071201cvs-2 A simple mail user agent
pn  build-essential    <none>                (no description available)
ii  bzr                1.3.1-1               easy to use distributed version co
ii  curl               7.18.1-1              Get a file from an HTTP, HTTPS or 
ii  cvs                1:1.12.13-10          Concurrent Versions System
ii  dctrl-tools        2.12                  Command-line tools to process Debi
ii  debian-keyring     2007.12.04            GnuPG (and obsolete PGP) keys of D
ii  debian-maintainers 1.29                  GPG keys of Debian maintainers
ii  dput               0.9.2.30              Debian package upload tool
pn  equivs             <none>                (no description available)
ii  fakeroot           1.9.4                 Gives a fake root environment
ii  git-core           1:1.5.5.1-1           fast, scalable, distributed revisi
ii  gnupg              1.4.6-2.1             GNU privacy guard - a free PGP rep
ii  iceweasel [www-bro 3.0~b5-1              lightweight web browser based on M
pn  libauthen-sasl-per <none>                (no description available)
pn  libcrypt-ssleay-pe <none>                (no description available)
pn  libfile-desktopent <none>                (no description available)
pn  libparse-debcontro <none>                (no description available)
pn  libsoap-lite-perl  <none>                (no description available)
pn  libterm-size-perl  <none>                (no description available)
ii  libtimedate-perl   1.1600-9              Time and date functions for Perl
ii  liburi-perl        1.35.dfsg.1-1         Manipulates and accesses URI strin
pn  libwww-perl        <none>                (no description available)
ii  lintian            1.23.46               Debian package checker
ii  lsb-release        3.2-10                Linux Standard Base version report
ii  man-db             2.5.1-3               on-line manual pager
ii  openssh-client [ss 1:4.7p1-8             secure shell client, an rlogin/rsh
ii  patch              2.5.9-5               Apply a diff file to an original
pn  patchutils         <none>                (no description available)
ii  perl [libdigest-md 5.8.8-12              Larry Wall's Practical Extraction 
ii  strace             4.5.15-1.2            A system call tracer
ii  subversion         1.4.6dfsg1-3          Advanced version control system
ii  unzip              5.52-11               De-archiver for .zip files
ii  w3m [www-browser]  0.5.1-5.1+b1          WWW browsable pager with excellent
pn  wdiff              <none>                (no description available)
ii  wget               1.11.1-1              retrieves files from the web

-- no debconf information

Attachment: pgp5q9I2E9G8U.pgp
Description: PGP signature

Reply via email to