ZenphotoCMS Forum
The .tar.gz link is troublesome - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: The .tar.gz link is troublesome (/thread-10745.html)



The .tar.gz link is troublesome - ikewinski - 2013-01-17

First, why is it that the link on the front page doesn't point to the right place, instead of giving me a 302?

$ wget https://github.com/zenphoto/zenphoto/archive/Zenphoto-1.4.4.tar.gz --2013-01-16 22:58:20-- https://github.com/zenphoto/zenphoto/archive/Zenphoto-1.4.4.tar.gz Resolving github.com... 207.97.227.239 Connecting to github.com|207.97.227.239|:443... connected. HTTP request sent, awaiting response... 302 Found Location: https://nodeload.github.com/zenphoto/zenphoto/tar.gz/Zenphoto-1.4.4 [following] --2013-01-16 22:58:21-- https://nodeload.github.com/zenphoto/zenphoto/tar.gz/Zenphoto-1.4.4 Resolving nodeload.github.com... 207.97.227.252 Connecting to nodeload.github.com|207.97.227.252|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 8847516 (8.4M) [application/x-gzip] Saving to: Zenphoto-1.4.4 ...
Second, why does the redirected URL not have a file extension that would allow this to work?

$ file Zenphoto-1.4.4 Zenphoto-1.4.4: gzip compressed data, from Unix $ gunzip Zenphoto-1.4.4 gunzip: Zenphoto-1.4.4: unknown suffix -- ignored $ mv Zenphoto-1.4.4 Zenphoto-1.4.4.gz $ gunzip Zenphoto-1.4.4.gz $ cd Zenphoto-1.4.4 -bash: cd: Zenphoto-1.4.4: Not a directory $ file Zenphoto-1.4.4 Zenphoto-1.4.4: tar archive $ tar -x Zenphoto-1.4.4
And tar just hangs there, forever, probably also balking at the wrong extension but too dumb to tell me. I finally cancelled it. I will try the ZIP version. I don't understand what is going on here. I can't be the only one?




The .tar.gz link is troublesome - acrylian - 2013-01-17

I just tried both links using Safari 6 and Firefox 18. Both do work without any issue. The links are those provided by GitHub and we have no hand in those. You are indeed the first to report any issue with them.




The .tar.gz link is troublesome - ikewinski - 2013-01-17

OK Thanks. I will make a practice of downloading locally with a GUI and then uploading to the server. Maybe folks just aren't using wget anymore...




The .tar.gz link is troublesome - acrylian - 2013-01-17

I never did for sure..;-) I assume the GitHub links are no direct download links on purpose.




The .tar.gz link is troublesome - kagutsuchi - 2013-01-17

You could try the answers below, seems that there are command options that might work:

wget: http://stackoverflow.com/questions/8377081/github-api-download-zip-or-tarball-link

curl: http://stackoverflow.com/questions/5746325/how-do-i-download-a-tarball-from-github-using-curl