Re: GitHub is a terrible upstream

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mercredi 13 juin 2012 à 19:49 +0200, Pierre-Yves Chibon a écrit :
> On Wed, 2012-06-13 at 11:45 -0600, Pete Zaitcev wrote:
> > Suppose I cut a package last year:
> >  swift3-1.0.0-878c23.tag.xz
> > Then I build an RPM:
> >  openstack-swift-plugin-swift3-1.0.0-878c23-1.fc17.noarch.rpm
> > 
> > Today I run the same git-archve and get:
> >  swift3-1.0.0-5c74ba.tag.xz
> >  openstack-swift-plugin-swift3-1.0.0-5c74ba-1.fc18.noarch.rpm
> > 
> > Great, how do I update from the old one to the new one? 
> 
> That's why the guidelines are saying:
>   20110102snap
>   20110102git
>   20110102git9e88d7e
> using the date as well as the git hash
> http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Release_Tag
> 
> Pierre

$ git log -r -1
.... log + date ....
$ git rev-parse --short HEAD // short hash to use
$ git checkout < short hash to use >
$ git archive --prefix=<name>-%%{alphatag}/ HEAD | xz > ../<name>-%
%{alphatag}.xz

where alphatag is <name><date>git<short hash>


-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux