Debian Bug report logs - #612863
[dget] Compare timestamps before downloading

version graph

Package: devscripts; Maintainer for devscripts is Devscripts Maintainers <[email protected]>; Source for devscripts is src:devscripts (PTS, buildd, popcon).

Reported by: Aníbal Monsalve Salazar <[email protected]>

Date: Fri, 11 Feb 2011 08:06:02 UTC

Severity: wishlist

Tags: patch

Found in version devscripts/2.10.69

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Devscripts Devel Team <[email protected]>:
Bug#612863; Package devscripts. (Fri, 11 Feb 2011 08:06:05 GMT) (full text, mbox, link).


Acknowledgement sent to Aníbal Monsalve Salazar <[email protected]>:
New Bug report received and forwarded. Copy sent to Devscripts Devel Team <[email protected]>. (Fri, 11 Feb 2011 08:06:05 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Aníbal Monsalve Salazar <[email protected]>
To: [email protected]
Subject: devscripts: please preserve timestamps in the dget script
Date: Fri, 11 Feb 2011 08:03:40 +0000
Package: devscripts
Version: 2.10.69
Tags: patch

Please preserve timestamps in the dget script. I'm using the patch
below to pass the -N option to wget. I don't know the corresponding
option for curl.

--- /usr/bin/dget~	2010-10-21 23:05:30.000000000 +1100
+++ /usr/bin/dget	2011-02-11 18:56:04.000000000 +1100
@@ -115,6 +115,7 @@ sub wget {
     # curl does not follow document moved headers, and does not exit
     # with a non-zero error code by default if a document is not found
     push @cmd, "-f", "-L" if $wget eq "curl";
+    push @cmd, "-N" if $wget eq "wget";
     push @cmd, ($wget eq "wget" ? "-nv" : ("-s", "-S")) if $opt->{'quiet'};
     push @cmd, ($wget eq "wget" ? "--no-check-certificate" : "--insecure") if $opt->{'insecure'};
     push @cmd, ($wget eq "wget" ? "--no-cache" : ("--header", "Pragma: no-cache")) if $opt->{'no-cache'};




Information forwarded to [email protected], Devscripts Devel Team <[email protected]>:
Bug#612863; Package devscripts. (Tue, 15 Feb 2011 05:00:05 GMT) (full text, mbox, link).


Acknowledgement sent to James Vega <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devscripts Devel Team <[email protected]>. (Tue, 15 Feb 2011 05:00:05 GMT) (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: James Vega <[email protected]>
To: Aníbal Monsalve Salazar <[email protected]>, [email protected]
Subject: Re: Bug#612863: devscripts: please preserve timestamps in the dget script
Date: Mon, 14 Feb 2011 23:57:07 -0500
[Message part 1 (text/plain, inline)]
On Fri, Feb 11, 2011 at 08:03:40AM +0000, Aníbal Monsalve Salazar wrote:
> Please preserve timestamps in the dget script. I'm using the patch
> below to pass the -N option to wget. I don't know the corresponding
> option for curl.

What use is this in the context of dget?  If you've already downloaded a
file, dget won't download it again unless the existing file doesn't
match the hash in the dsc.  Plus, filenames are versioned so there isn't
an expectation that a file with the same name may be updated in the
future.  Also, your patch doesn't change the current behavior at all
since wget ignores -N when -O is being used (which dget does).

-- 
James
GPG Key: 1024D/61326D40 2003-09-02 James Vega <[email protected]>
[signature.asc (application/pgp-signature, inline)]

Changed Bug title to '[dget] Compare timestamps before downloading' from 'devscripts: please preserve timestamps in the dget script' Request was from James Vega <[email protected]> to [email protected]. (Tue, 15 Feb 2011 05:51:03 GMT) (full text, mbox, link).


Severity set to 'wishlist' from 'normal' Request was from James Vega <[email protected]> to [email protected]. (Tue, 15 Feb 2011 05:51:04 GMT) (full text, mbox, link).


Information forwarded to [email protected], Devscripts Devel Team <[email protected]>:
Bug#612863; Package devscripts. (Mon, 17 Sep 2012 10:33:03 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Biedl <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devscripts Devel Team <[email protected]>. (Mon, 17 Sep 2012 10:33:03 GMT) (full text, mbox, link).


Message #19 received at [email protected] (full text, mbox, reply):

From: Christoph Biedl <[email protected]>
To: James Vega <[email protected]>
Cc: Aníbal Monsalve Salazar <[email protected]>, [email protected]
Subject: Re: Bug#612863: devscripts: please preserve timestamps in the dget script
Date: Mon, 17 Sep 2012 12:23:56 +0200
James Vega wrote...

> On Fri, Feb 11, 2011 at 08:03:40AM +0000, Aníbal Monsalve Salazar wrote:
> > Please preserve timestamps in the dget script. I'm using the patch
> > below to pass the -N option to wget. I don't know the corresponding
> > option for curl.
> 
> What use is this in the context of dget?

Call it compability with apt-get source which does preserve the
timestamps.

Or just eye-candy.

Or, although rather personal: An .orig.tar.gz with a timestamp of more
or less "now" is an alarm sign to me: In the past I saw that only if
that tar ball was re-generated, something that was very likely not
intended.

> Also, your patch doesn't change the current behavior at all
> since wget ignores -N when -O is being used (which dget does).

Indeed, dget using wget always worked as expected here, read:
timestamps were preserved. Aníbal, I suspect you have an .wgetrc
interfering, causing you to suggest "-N".

The trouble for me started when curl was installed and preferred by
dget, since the "-R" (long form is better: "--remote-time") option is
needed for curl. I'm not including the trivial patch, however it works
for me.

    Christoph



Information forwarded to [email protected], Devscripts Maintainers <[email protected]>:
Bug#612863; Package devscripts. (Wed, 19 Apr 2023 08:36:21 GMT) (full text, mbox, link).


Acknowledgement sent to Christoph Biedl <[email protected]>:
Extra info received and forwarded to list. Copy sent to Devscripts Maintainers <[email protected]>. (Wed, 19 Apr 2023 08:36:22 GMT) (full text, mbox, link).


Message #24 received at [email protected] (full text, mbox, reply):

From: Christoph Biedl <[email protected]>
To: [email protected]
Subject: Re: Bug#612863: devscripts: please preserve timestamps in the dget script
Date: Wed, 19 Apr 2023 10:29:41 +0200
[Message part 1 (text/plain, inline)]
Christoph Biedl wrote...

> James Vega wrote...
> 
> > On Fri, Feb 11, 2011 at 08:03:40AM +0000, Aníbal Monsalve Salazar wrote:
> > > Please preserve timestamps in the dget script. I'm using the patch
> > > below to pass the -N option to wget. I don't know the corresponding
> > > option for curl.
> > 
> > What use is this in the context of dget?
> 
> Call it compability with apt-get source which does preserve the
> timestamps.
> 
> Or just eye-candy.
> 
> Or, although rather personal: An .orig.tar.gz with a timestamp of more
> or less "now" is an alarm sign to me: In the past I saw that only if
> that tar ball was re-generated, something that was very likely not
> intended.
> 
> > Also, your patch doesn't change the current behavior at all
> > since wget ignores -N when -O is being used (which dget does).
> 
> Indeed, dget using wget always worked as expected here, read:
> timestamps were preserved. Aníbal, I suspect you have an .wgetrc
> interfering, causing you to suggest "-N".
> 
> The trouble for me started when curl was installed and preferred by
> dget, since the "-R" (long form is better: "--remote-time") option is
> needed for curl. I'm not including the trivial patch, however it works
> for me.

Seems this was resolved in 2.23.0 after the request came up again in
#1020914

    Christoph
[signature.asc (application/pgp-signature, inline)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Mon May 12 07:41:17 2025; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.