~sschwarzer/ftputil#43: 
ftputil-2.4.2b2.tar.gz seems to be corrupt

Trying to pull down the gz file to see why I was getting a missing file on installation:

#wget

https://ftputil.sschwarzer.net/trac/attachment/wiki/Download/ftputil-2.4.2b2.tar.gz

#tar zxvf ftputil-2.4.2b2.tar.gz tar: Unrecognized archive format:

Inappropriate file type or format tar: Error exit delayed from previous errors.

#gunzip ftputil-2.4.2b2.tar.gz gzip: ftputil-2.4.2b2.tar.gz: not in

gzip format

Status
RESOLVED INVALID
Submitter
ssteiner (unverified)
Assigned to
No-one
Submitted
14 years ago
Updated
14 years ago
Labels
bug

ssteiner (unverified) 14 years ago · edit

File cannot be downloaded with wget but does work when downloaded with web browser.

The link name implies that it will be a .gz download but the link actually gets redirected to a web page with a real download link on it.

schwa (unverified) 14 years ago · edit

Hi ssteiner, thanks for reporting! :-)

The links in the table at the top of the download page are direct download links and work for a direct download with wget (just tested). It's a bit unfortunate that wget keeps the suffix ?format=raw in the filename unless you use the -o option, though a webbrowser usually removes it. The query string makes the difference between a direct download and a preview page.

Probably you used the links at the end of the page. These are auto-generated by Trac, and the links in this section lead to HTML preview pages which are practically useless if not confusing for tar.gz files. So far, I haven't found a way to remove the attachment section without editing the page template. However, changing the template affects all wiki pages and it gets lost after every Trac update.

As a workaround, I've added an additional "heading" in the same layout as the auto-generated "Attachment" heading to notify people of the problem.

schwa (unverified) 14 years ago · edit

I close this ticket with a status of "invalid" since the tar.gz file seems to be ok.

Nonetheless I'm thankful for tips on how to deal with this confusion in the wiki. Please send tips to the mailing list or in private e-mail.

Register here or Log in to comment, or comment via email.