On Saturday, August 18, 2018 10:32:12 PM CDT Bruce Dubbs wrote:
> 
> So what is the full url?  https://github.com/ninja-build/ninja/archive/ 
> is not found as is 
> https://github.com/ninja-build/ninja/archive/ninja-1.8.2.tar.gz
> 
> https://github.com/ninja-build/ninja/archive/v1.8.2.tar.gz works, but 
> sucks for a wget list.
> 
>    -- Bruce

If you use:

https://codeload.github.com/ninja-build/ninja/tar.gz/v1.8.2

...Github sends a Content-Disposition header with a more appropriate filename, 
such as ninja-1.8.2.tar.gz. wget can handle this with the --content-
disposition option.

I tried downloading the wget-list for 8.3-rc2 (with the Ninja URL replaced by 
the one above) using this command:

wget --input-file=wget-list --continue --content-disposition

None of the other filenames changed (presumably, no one else is sending a 
Content-Disposition header, or if they are, it matches the filename in the 
URL). Ninja was downloaded as ninja-1.8.2.tar.gz.
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to