bugGNU Wget - Bugs: bug #20516, -O and -N do not get along

 
 

bug #20516: -O and -N do not get along

Submitted by:  Noël Köthe <nok>
Submitted on:  Wed 18 Jul 2007 06:49:02 PM UTC  
 
Category: User InterfaceSeverity: 3 - Normal
Priority: 5 - NormalStatus: Fixed In Repository
Privacy: PublicAssigned to: None
Originator Name: Open/Closed: Closed
Release: 1.10.2Operating System: GNU/Linux
Reproducibility: Every TimeFixed Release: 1.11
Planned Release: NoneRegression: None
Work Required: NonePatch Included: No

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 18 Jul 2007 07:11:39 PM UTC, comment #1:

The use of -N, -p or -r has been disabled in conjunction with -O in the trunk.

Micah Cowan <micahcowan>
Wed 18 Jul 2007 06:49:02 PM UTC, original submission:

Hello,

A forwarded Debian bug http://bugs.debian.org/202911

"It seems that if the filename is changed, wget's -N timestamp and size checking does not work. Or rather, it looks for a local file with whatever name wget would have saved the file as without the -O, and if it exists, does the checks on it."

I can reproduced this old report with 1.10.2:

$ LC_ALL=C wget -N http://bugs.debian.org/50595
--20:40:56-- http://bugs.debian.org/50595
=> `50595'
Resolving bugs.debian.org... 140.211.166.43
Connecting to bugs.debian.org|140.211.166.43|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50595 [following]
--20:40:57-- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50595
=> `bugreport.cgi?bug=50595'
Reusing existing connection to bugs.debian.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 36,173 50.89K/s

Last-modified header missing -- time-stamps turned off.
20:40:59 (50.83 KB/s) - `bugreport.cgi?bug=50595' saved [36173]

$ LC_ALL=C wget -N http://bugs.debian.org/50595 -O foo
--20:41:04-- http://bugs.debian.org/50595
=> `foo'
Resolving bugs.debian.org... 140.211.166.43
Connecting to bugs.debian.org|140.211.166.43|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50595 [following]
--20:41:04-- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=50595
=> `foo'
Reusing existing connection to bugs.debian.org:80.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Server file no newer than local file `bugreport.cgi?bug=50595' -- not retrieving.

$ ls -l
insgesamt 36
-rw-r--r-- 1 nk nk 36173 2007-07-18 20:40 bugreport.cgi?bug=50595
-rw-r--r-- 1 nk nk 0 2007-07-18 20:41 foo

Noël Köthe <nok>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by micahcowan (Posted a comment)
  • -unavailable- added by nok (Submitted the item)
  •  

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Jul 2007 07:11:39 PM UTCmicahcowanStatusNone=>Fixed In Repository
      Open/ClosedOpen=>Closed
      Fixed ReleaseNone=>1.11

    Back to the top


    Powered by Savane 3.1-cleanup1