treach wrote:
And this is supposed to prove what? Have you verified that it really *is* the source binary? Sourceforge have a habit of giving you a file that looks like the source binary, but in reality is some crappy text errorpage.
Note to nit-pickers: "binary" in the sense of a compressed file as opposed to the textfile you get when they screw up. I guess it's till to much "Monday morning" to be unambiguous.
This bug has been pestering me for quite some time as well, and I just wrote a fix. :-) /usr/ports/mine/w3m% pkgmk -do =======> Downloading `http://dl.sourceforge.net/sourceforge/w3m/w3m-0.5.1.tar.gz'. --19:51:59-- http://dl.sourceforge.net/sourceforge/w3m/w3m-0.5.1.tar.gz => `/mega/pkgmk/source/w3m-0.5.1.tar.gz.pkgmk-partial' Resolving firewall... 172.16.11.1 Connecting to firewall|172.16.11.1|:3128... connected. Proxy request sent, awaiting response... 302 Moved Temporarily Location: http://prdownloads.sourceforge.net/w3m/w3m-0.5.1.tar.gz?download&failedmirror=dl.sourceforge.net [following] --19:53:01-- http://prdownloads.sourceforge.net/w3m/w3m-0.5.1.tar.gz?download&failedmirror=dl.sourceforge.net => `/mega/pkgmk/source/w3m-0.5.1.tar.gz.pkgmk-partial' Connecting to firewall|172.16.11.1|:3128... connected. Proxy request sent, awaiting response... 200 OK Length: unspecified [text/html] [ <=> ] 12,395 33.00K/s 19:53:02 (32.97 KB/s) - `/mega/pkgmk/source/w3m-0.5.1.tar.gz.pkgmk-partial' saved [12395] =======> ERROR: Downloading `http://dl.sourceforge.net/sourceforge/w3m/w3m-0.5.1.tar.gz' failed. I don't know if this patch applies to normal pkgmk, but it's pretty easy to c&p in. --- pkgmk.orig 2006-09-18 19:34:15.064938304 +0200 +++ pkgmk 2006-09-18 19:51:31.567296816 +0200 @@ -138,6 +138,13 @@ exit 1 fi + # Test if file is a html file. Workaround buggy sourceforge mirrors. + if file $PKGMK_SOURCE_DIR/$PARTIALNAME | grep -q HTML && [ $PARTIALNAME = "$(echo $PARTIALNAME|sed -e 's|html*$||')" ]; then + error "Downloading \`$1' failed." + rm -f $PKGMK_SOURCE_DIR/$PARTIALNAME + exit 1 + fi + mv $PKGMK_SOURCE_DIR/$PARTIALNAME $PKGMK_SOURCE_DIR/$FILENAME } Anyway, it's now in my pkgutils. :-) # Han -- http://www.xs4all.nl/~hanb/software/crux/