[Fedora-packaging] DRAFT: SourceURL addition/clarification - Git Hosting Services
Gerald B. Cox
gbcox at bzb.us
Sat Jun 27 00:14:50 UTC 2015
On Fri, Jun 26, 2015 at 2:32 PM, Sérgio Basto <sergio at serjux.com> wrote:
> Instead :
> Source0:
>
> https://github.com/$OWNER/$PROJECT/archive/%{commit}/$PROJECT-%{commit}.tar.gz
>
>
>
> Source0:
>
> https://github.com/$OWNER/$PROJECT/archive/%{commit}/$PROJECT-%{shortcommit}.tar.gz
>
Sergio,
You mean you don't like the full 40-character-hash? ;-)
I actually thought of that since the full 40-character hash is stored in
the tar file anyway; the issue however
is that GitHub doesn't care if you provide the short value or not. The
file you get will be named with the full
40-character hash. Since that is the case, I left it using the %{commit}.
Now, if you want to rename the
file being downloaded, you can do that by appending #/$newname as shown in
the Bitbucket example.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/packaging/attachments/20150626/1ced6eb0/attachment-0001.html>
More information about the packaging
mailing list