[Fedora-packaging] Source0 for github ?

Toshio Kuratomi a.badger at gmail.com
Wed Sep 17 18:54:04 UTC 2014


On Sep 17, 2014 11:07 AM, "Simo Sorce" <ssorce at redhat.com> wrote:
>
>
> I was looking at this:
>
https://fedoraproject.org/wiki/Packaging:SourceURL?rd=Packaging/SourceURL#Github
>
> But it doesn't look like the URL constructed with these instructions
> lead to a download-able tarball.
> I guess Github has changed things again, is there any new guideline for
> Github Sources ?
>
> What I can see is that while this:
>
https://github.com/$OWNER/$PROJECT/archive/%{commit}/$PROJECT-%{commit}.tar.gz
> does not work, this:
> https://github.com/$OWNER/$PROJECT/archive/%{commit}.tar.gz
> works, and the content headers tell the browser that the file name
> should be $PROJECT-%{commit}.tar.gz
>
> Any direction would be appreciated.
>
Github has changed this several times :-(  if the old url scheme is not
working any longer the guidelines should be updated.  Fpc ticket is
probably best for that.  From your description of what urls work, I'm not
sure if there's a good recommendation for a github url in source0 (have to
test the permutations to see). Might have to go back to putting the url in
a comment.

-Toshio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20140917/8dcd586b/attachment.html>


More information about the packaging mailing list