https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7103
Kris Deugau <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #3 from Kris Deugau <[email protected]> --- (In reply to Mark Martinec from comment #2) > > wget uses -O, not -o, to determine the output file for the fetched data. > > -o relates to logging. > > Hmm, funny. > > The -O option is not compatible with -N (as documented), so the > resulting file does not get timestamped with original time. > > Even though -o is indeed documented as a log option, > it seems to get the correct result in the specified file, > and -N does apply an original timestamp: > > wget -N -o 1640695.tar.gz.asc -- > http://www.sa-update.pccc.com/1640695.tar.gz.asc > > vs. > > wget -N -O 1640695.tar.gz.asc -- > http://www.sa-update.pccc.com/1640695.tar.gz.asc > > The contents of a file 1640695.tar.gz.asc is the same in both cases, > except that in the -O case its timestamp is kept at a current time. > > Don't know what to make of it. Hm. After looking more closely at the larger setup for rules channels, I think the bug is at least partly in my usage. I'm not sure there isn't still a bug (if only a docu-bug on how to create a rules channel), since my local channel setup worked just fine with 3.3.2. When using -o <file> to fetch <file>, the logging noise that would normally have been left in your local copy of <file> is overwritten by the fetched <file>. There may still be a bug lurking in case of failure because of this. What happened in my case was that I had assumed that the remote filename for MIRRORED.BY didn't actually matter (quite true, at least for sa-update 3.3), and so I ended up with files <webroot>/MIRRORED.main and <webroot>/MIRRORED.lean for my two local rules channels. Looking back I can only guess I saw, or thought I saw, some requirement that these be at the webroot instead of allowing them to be in subdirectories. When attempting to run sa-update for the "main" local channel, wget happily downloaded MIRRORED.main and put its logging noise in MIRRORED.BY, leaving the real content in MIRRORED.main. When sa-update read the resulting MIRRORED.BY, it didn't find the list of URLs it was expecting. Moving these files to per-channel subdirectories and tweaking the DNS records to match fixes things up. -- You are receiving this mail because: You are the assignee for the bug.
