Package: devscripts
Version: 2.10.20
Severity: minor
Tags: patch
When I attempt to use dget to download a specific version of a binary
package that is not the candidate for installation, I get the
following error message:
$ dget bash=3.1dfsg-8
dget: no filename for bash (3.1dfsg-8) found
I think the problem is related to that I have configured "apt-cache
show" to not display all available versions by default with the
following line in /etc/apt/apt.conf:
APT::Cache::AllVersions "false";
This seems to cause dget to fail to find the requested version when
it's parsing the output from "apt-cache show". Thus, I suggest that
apt-cache is invoked with the -a option to override a potential
APT::Cache::AllVersions "false" configuration, like in this simple
patch:
diff -Naur -- a/scripts/dget.pl b/scripts/dget.pl
--- a/scripts/dget.pl 2008-03-24 16:31:36.000000000 +0000
+++ b/scripts/dget.pl 2008-03-25 21:24:00.000000000 +0000
@@ -273,7 +273,7 @@
die "$progname: no hostnames in apt-cache policy $package for $version
found\n";
}
- $apt = new IO::File("LC_ALL=C apt-cache show $package |") or die "$!";
+ $apt = new IO::File("LC_ALL=C apt-cache -a show $package |") or die "$!";
my ($v, $p, $filename, $md5sum);
while (<$apt>) {
if (/^Package: $qpackage$/) {
(Note that it seems that this problem could also occur in some
situations even when the version of the binary package to download is
not explicitly specified to dget. However, this is because of what
seems to be a bug in apt-cache which causes "apt-cache show" to
sometimes not display the candidate version, but instead another
version of the package, when it has been configured this way. See for
example bug #438661.)
-- Package-specific info:
--- /etc/devscripts.conf ---
--- ~/.devscripts ---
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (990, 'unstable'), (500, 'testing'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages devscripts depends on:
ii debianutils 2.28.4 Miscellaneous utilities specific t
ii dpkg-dev 1.14.16.6 package building tools for Debian
ii libc6 2.7-9 GNU C Library: Shared libraries
ii perl 5.8.8-12 Larry Wall's Practical Extraction
ii sed 4.1.5-6 The GNU sed stream editor
Versions of packages devscripts recommends:
ii fakeroot 1.9.3 Gives a fake root environment
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]