Your message dated Sun, 12 Oct 2008 19:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#501932: fixed in devscripts 2.10.39
has caused the Debian Bug report #501932,
regarding [uscan] Allow --download-version to work even if a higher upstream
version is present
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [EMAIL PROTECTED]
immediately.)
--
501932: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501932
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: devscripts
Version: 2.10.26
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu intrepid ubuntu-patch
Hi,
My use case for uscan --download-version is to programatically retrieve
old versions of an upstream tarball. Currently this will give output
like this:
uscan --package sugar --download-version 0.81.5 --repack --rename
--download --force-download --destdir . --upstream-version 0.82.0
--watchfile debian/watch --debug
-- In debian/watch, processing watchfile line:
http://dev.laptop.org/pub/sugar/sources/sugar/sugar-(.*)\.tar\.bz2
uscan debug: requesting URL
http://dev.laptop.org/pub/sugar/sources/sugar/
uscan debug: received content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /pub/sugar/sources/sugar</title>
</head>
<body>
<h1>Index of /pub/sugar/sources/sugar</h1>
<pre><img src="/icons/blank.gif" alt="Icon "> <a
href="?C=N;O=D">Name</a> <a href="?C=M;O=A">Last modified</a> <a
href="?C=S;O=A">Size</a> <a href="?C=D;O=A">Description</a><hr><img
src="/icons/back.gif" alt="[DIR]"> <a href="/pub/sugar/sources/">Parent
Directory</a> -
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.75.15.tar.bz2">sugar-0.75.15.tar.bz2</a> 20-May-2008 11:35
510K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.0.tar.bz2">sugar-0.79.0.tar.bz2</a> 08-Feb-2008 14:01
254K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.1.tar.bz2">sugar-0.79.1.tar.bz2</a> 28-Mar-2008 14:15
257K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.2.tar.bz2">sugar-0.79.2.tar.bz2</a> 02-Apr-2008 13:38
258K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.3.tar.bz2">sugar-0.79.3.tar.bz2</a> 09-Apr-2008 16:50
310K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.4.tar.bz2">sugar-0.79.4.tar.bz2</a> 22-Apr-2008 13:02
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.5.tar.bz2">sugar-0.79.5.tar.bz2</a> 18-May-2008 14:25
310K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.1.tar.bz2">sugar-0.81.1.tar.bz2</a> 20-May-2008 13:09
241K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.2.tar.bz2">sugar-0.81.2.tar.bz2</a> 23-May-2008 17:51
241K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.3.tar.bz2">sugar-0.81.3.tar.bz2</a> 05-Jun-2008 09:32
255K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.4.tar.bz2">sugar-0.81.4.tar.bz2</a> 20-Jun-2008 12:57
260K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.5.tar.bz2">sugar-0.81.5.tar.bz2</a> 21-Jun-2008 05:11
260K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.6.tar.bz2">sugar-0.81.6.tar.bz2</a> 07-Jul-2008 16:33
288K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.7.tar.bz2">sugar-0.81.7.tar.bz2</a> 22-Jul-2008 08:48
287K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.8.tar.bz2">sugar-0.81.8.tar.bz2</a> 31-Jul-2008 15:12
295K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.0.tar.bz2">sugar-0.82.0.tar.bz2</a> 07-Aug-2008 12:00
305K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.1.tar.bz2">sugar-0.82.1.tar.bz2</a> 28-Aug-2008 10:52
307K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.2.tar.bz2">sugar-0.82.2.tar.bz2</a> 29-Aug-2008 09:27
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.3.tar.bz2">sugar-0.82.3.tar.bz2</a> 06-Sep-2008 11:50
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.4.tar.bz2">sugar-0.82.4.tar.bz2</a> 11-Sep-2008 05:35
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.5.tar.bz2">sugar-0.82.5.tar.bz2</a> 12-Sep-2008 12:24
312K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.6.tar.bz2">sugar-0.82.6.tar.bz2</a> 13-Sep-2008 14:02
314K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.7.tar.bz2">sugar-0.82.7.tar.bz2</a> 16-Sep-2008 15:20
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.8.tar.bz2">sugar-0.82.8.tar.bz2</a> 20-Sep-2008 05:57
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.9.tar.bz2">sugar-0.82.9.tar.bz2</a> 25-Sep-2008 15:09
316K
<hr></pre>
</body></html>
[End of received content]
uscan debug: matching pattern (?:(?:http://dev.laptop.org)?\/pub\/sugar
\/sources\/sugar\/)?sugar-(.*)\.tar\.bz2
-- Found the following matching hrefs:
sugar-0.75.15.tar.bz2
sugar-0.79.0.tar.bz2
sugar-0.79.1.tar.bz2
sugar-0.79.2.tar.bz2
sugar-0.79.3.tar.bz2
sugar-0.79.4.tar.bz2
sugar-0.79.5.tar.bz2
sugar-0.81.1.tar.bz2
sugar-0.81.2.tar.bz2
sugar-0.81.3.tar.bz2
sugar-0.81.4.tar.bz2
sugar-0.81.5.tar.bz2
sugar-0.81.6.tar.bz2
sugar-0.81.7.tar.bz2
sugar-0.81.8.tar.bz2
sugar-0.82.0.tar.bz2
sugar-0.82.1.tar.bz2
sugar-0.82.2.tar.bz2
sugar-0.82.3.tar.bz2
sugar-0.82.4.tar.bz2
sugar-0.82.5.tar.bz2
sugar-0.82.6.tar.bz2
sugar-0.82.7.tar.bz2
sugar-0.82.8.tar.bz2
sugar-0.82.9.tar.bz2
Newest version on remote site is 0.81.5, local version is 0.82.0
=> remote site does not even have current version
refusing to download the requested version. The problem is that the
"lastversion"
variable is set to what you pass for --download-version to make it
download that
version, but then this code checks that against the current upstream
version,
and thinks that there is nothing new to download.
My patch skips this check if --download-version is specified, as for my
use case
any checks like this make no sense. It gives output like:
uscan --package sugar --download-version 0.81.5 --repack --rename
--download --force-download --destdir . --upstream-version 0.82.0
--watchfile debian/watch --debug
-- In debian/watch, processing watchfile line:
http://dev.laptop.org/pub/sugar/sources/sugar/sugar-(.*)\.tar\.bz2
uscan debug: requesting URL
http://dev.laptop.org/pub/sugar/sources/sugar/
uscan debug: received content:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<html>
<head>
<title>Index of /pub/sugar/sources/sugar</title>
</head>
<body>
<h1>Index of /pub/sugar/sources/sugar</h1>
<pre><img src="/icons/blank.gif" alt="Icon "> <a
href="?C=N;O=D">Name</a> <a href="?C=M;O=A">Last modified</a> <a
href="?C=S;O=A">Size</a> <a href="?C=D;O=A">Description</a><hr><img
src="/icons/back.gif" alt="[DIR]"> <a href="/pub/sugar/sources/">Parent
Directory</a> -
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.75.15.tar.bz2">sugar-0.75.15.tar.bz2</a> 20-May-2008 11:35
510K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.0.tar.bz2">sugar-0.79.0.tar.bz2</a> 08-Feb-2008 14:01
254K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.1.tar.bz2">sugar-0.79.1.tar.bz2</a> 28-Mar-2008 14:15
257K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.2.tar.bz2">sugar-0.79.2.tar.bz2</a> 02-Apr-2008 13:38
258K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.3.tar.bz2">sugar-0.79.3.tar.bz2</a> 09-Apr-2008 16:50
310K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.4.tar.bz2">sugar-0.79.4.tar.bz2</a> 22-Apr-2008 13:02
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.79.5.tar.bz2">sugar-0.79.5.tar.bz2</a> 18-May-2008 14:25
310K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.1.tar.bz2">sugar-0.81.1.tar.bz2</a> 20-May-2008 13:09
241K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.2.tar.bz2">sugar-0.81.2.tar.bz2</a> 23-May-2008 17:51
241K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.3.tar.bz2">sugar-0.81.3.tar.bz2</a> 05-Jun-2008 09:32
255K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.4.tar.bz2">sugar-0.81.4.tar.bz2</a> 20-Jun-2008 12:57
260K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.5.tar.bz2">sugar-0.81.5.tar.bz2</a> 21-Jun-2008 05:11
260K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.6.tar.bz2">sugar-0.81.6.tar.bz2</a> 07-Jul-2008 16:33
288K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.7.tar.bz2">sugar-0.81.7.tar.bz2</a> 22-Jul-2008 08:48
287K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.81.8.tar.bz2">sugar-0.81.8.tar.bz2</a> 31-Jul-2008 15:12
295K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.0.tar.bz2">sugar-0.82.0.tar.bz2</a> 07-Aug-2008 12:00
305K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.1.tar.bz2">sugar-0.82.1.tar.bz2</a> 28-Aug-2008 10:52
307K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.2.tar.bz2">sugar-0.82.2.tar.bz2</a> 29-Aug-2008 09:27
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.3.tar.bz2">sugar-0.82.3.tar.bz2</a> 06-Sep-2008 11:50
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.4.tar.bz2">sugar-0.82.4.tar.bz2</a> 11-Sep-2008 05:35
311K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.5.tar.bz2">sugar-0.82.5.tar.bz2</a> 12-Sep-2008 12:24
312K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.6.tar.bz2">sugar-0.82.6.tar.bz2</a> 13-Sep-2008 14:02
314K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.7.tar.bz2">sugar-0.82.7.tar.bz2</a> 16-Sep-2008 15:20
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.8.tar.bz2">sugar-0.82.8.tar.bz2</a> 20-Sep-2008 05:57
313K
<img src="/icons/unknown.gif" alt="[ ]"> <a
href="sugar-0.82.9.tar.bz2">sugar-0.82.9.tar.bz2</a> 25-Sep-2008 15:09
316K
<hr></pre>
</body></html>
[End of received content]
uscan debug: matching pattern (?:(?:http://dev.laptop.org)?\/pub\/sugar
\/sources\/sugar\/)?sugar-(.*)\.tar\.bz2
-- Found the following matching hrefs:
sugar-0.75.15.tar.bz2
sugar-0.79.0.tar.bz2
sugar-0.79.1.tar.bz2
sugar-0.79.2.tar.bz2
sugar-0.79.3.tar.bz2
sugar-0.79.4.tar.bz2
sugar-0.79.5.tar.bz2
sugar-0.81.1.tar.bz2
sugar-0.81.2.tar.bz2
sugar-0.81.3.tar.bz2
sugar-0.81.4.tar.bz2
sugar-0.81.5.tar.bz2
sugar-0.81.6.tar.bz2
sugar-0.81.7.tar.bz2
sugar-0.81.8.tar.bz2
sugar-0.82.0.tar.bz2
sugar-0.82.1.tar.bz2
sugar-0.82.2.tar.bz2
sugar-0.82.3.tar.bz2
sugar-0.82.4.tar.bz2
sugar-0.82.5.tar.bz2
sugar-0.82.6.tar.bz2
sugar-0.82.7.tar.bz2
sugar-0.82.8.tar.bz2
sugar-0.82.9.tar.bz2
Newest version on remote site is 0.81.5, local version is 0.82.0
=> Forcing download as requested
-- Downloading updated package sugar-0.81.5.tar.bz2
uscan debug: requesting URL
http://dev.laptop.org/pub/sugar/sources/sugar/sugar-0.81.5.tar.bz2
-- Repacking from bzip2 to gzip
-- Successfully downloaded updated package sugar-0.81.5.tar.gz
and renamed it as sugar_0.81.5.orig.tar.gz
Attached is the proposed patch to fix this. Please consider applying
it.
Thanks,
James
diff -Nru devscripts-2.10.26ubuntu13/scripts/uscan.pl devscripts-2.10.26ubuntu14/scripts/uscan.pl
--- devscripts-2.10.26ubuntu13/scripts/uscan.pl 2008-04-13 17:47:02.000000000 +0100
+++ devscripts-2.10.26ubuntu14/scripts/uscan.pl 2008-10-11 18:00:09.000000000 +0100
@@ -1062,19 +1062,21 @@
# We use dpkg's rules to determine whether our current version
# is newer or older than the remote version.
- if (system("dpkg --compare-versions '$mangled_lastversion' gt '$newversion'") == 0) {
- if ($verbose) {
- print " => remote site does not even have current version\n";
- } elsif ($dehs) {
- $dehs_tags{'status'} = "Debian version newer than remote site";
- } else {
- print "$pkg: remote site does not even have current version\n";
- }
- return 0;
- } else {
- # There's a newer upstream version available, which may already
- # be on our system or may not be
- $found++;
+ if (! defined $download_version){
+ if (system("dpkg --compare-versions '$mangled_lastversion' gt '$newversion'") == 0) {
+ if ($verbose) {
+ print " => remote site does not even have current version\n";
+ } elsif ($dehs) {
+ $dehs_tags{'status'} = "Debian version newer than remote site";
+ } else {
+ print "$pkg: remote site does not even have current version\n";
+ }
+ return 0;
+ } else {
+ # There's a newer upstream version available, which may already
+ # be on our system or may not be
+ $found++;
+ }
}
if (defined $pkg_dir) {
--- End Message ---
--- Begin Message ---
Source: devscripts
Source-Version: 2.10.39
We believe that the bug you reported is fixed in the latest version of
devscripts, which is due to be installed in the Debian FTP archive:
devscripts_2.10.39.dsc
to pool/main/d/devscripts/devscripts_2.10.39.dsc
devscripts_2.10.39.tar.gz
to pool/main/d/devscripts/devscripts_2.10.39.tar.gz
devscripts_2.10.39_amd64.deb
to pool/main/d/devscripts/devscripts_2.10.39_amd64.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Adam D. Barratt <[EMAIL PROTECTED]> (supplier of updated devscripts package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 12 Oct 2008 20:24:23 +0100
Source: devscripts
Binary: devscripts
Architecture: source amd64
Version: 2.10.39
Distribution: unstable
Urgency: low
Maintainer: Devscripts Devel Team <[email protected]>
Changed-By: Adam D. Barratt <[EMAIL PROTECTED]>
Description:
devscripts - scripts to make the life of a Debian Package maintainer easier
Closes: 499434 499971 500256 500585 501142 501162 501171 501447 501932
Changes:
devscripts (2.10.39) unstable; urgency=low
.
[ Adam D. Barratt ]
* bts:
+ Allow an explicit HELO to be specified when connecting via SMTP.
+ If a HELO is not specified then attempt to use the content of
/etc/mailname instread.
+ Expand on the definition of "claim" in the manpage. (Closes: #501142)
+ Trim anything that doesn't look like an e-mail address from $DEBEMAIL or
$EMAIL before using it for un/claim or un/subscribe. (Closes: #501162)
+ Update the documentation for "bts select" to make it clearer that
specifying a key multiple times gives "or" semantics. (Closes: #499434)
* checkbashisms:
+ Recognise brace expansions containing a leading or trailing empty value
("{,foo}", etc). Thanks Jonny Lamb. (Closes: #499971)
+ Recognise the use of "source" with quoted arguments. (Closes: #501171)
* debdiff: Ensure exit status is always explicitly set (and set
correctly). (Closes: #500256)
* debian/rules: Create a link from the French pts-subscribe manpage
as pts-unsubscribe, so long as the former exists (i.e. has been
sufficiently translated).
* licensecheck: Add support for fortran and Scilab files and for detecting
the CeCILL and "SGI Free B" licenses. Thanks Sylvestre Ledru
(Closes: #501447)
* uscan: Allow --download-version to be more useful in situations where a
current upstream version higher than that to be downloaded has been
specified. Thanks James Westby. (Closes: #501932)
.
[ James Vega ]
* pts-subscribe: When called as pts-unsubscribe, send an unsubscribe request
to the PTS. (Closes: #500585)
Checksums-Sha1:
576485dd4205d8de17ccf1c176f7426859cbf7e8 1386 devscripts_2.10.39.dsc
6bd990b52ee3f41682df55f2f696e3a48da7c269 613382 devscripts_2.10.39.tar.gz
9df8b1ea0895fa2d1038eff2542b933b5a66c035 531098 devscripts_2.10.39_amd64.deb
Checksums-Sha256:
eb8b465be292adf16b80b587ac030f1d6e4009e0f0dc33688ce1f29c3da808c7 1386
devscripts_2.10.39.dsc
605c3b626a68e45213c86428a65fa73cb90e7de563056953a3ae9adcb13ec402 613382
devscripts_2.10.39.tar.gz
e9356d90b9c21369b1a12df7df506eb71da57318f81c09431b0a29ad871953d5 531098
devscripts_2.10.39_amd64.deb
Files:
60f0d8c2d6b20a6f1cc8df3d55afb66b 1386 devel optional devscripts_2.10.39.dsc
6f7871c88ca59837dba0831ac5041049 613382 devel optional
devscripts_2.10.39.tar.gz
e040cdfa690fd7b89445f5f67482906b 531098 devel optional
devscripts_2.10.39_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEARECAAYFAkjyUDgACgkQokcE1TReOoXAuwCfawQHMFDDjYsDABt1VNfqqY/l
JU0An2pHwSlnjrKhK3JJcHglKvuF7IxL
=08kM
-----END PGP SIGNATURE-----
--- End Message ---