Follow-up on the discussion here: http://lists.openembedded.org/pipermail/openembedded-core/2015-January/100345.html
This is a preliminary implementation of gitpkgv in OE-core. It modifies the fetcher to optionally provide an incremental numbering scheme for GIT repositories. These two patches implement this. The change in __init__ is basically ready for public consumption. The modification to git.py is a prototype that I've used to test feasibility. It imitates gitpkgv perfectly for the recipes I tried. To make this ready for production, we should provide better names and likely a GITPKGV or similarly named variable that can be used in recipes instead of "${@bb.fetch2.get_srcrev(d, 'gitpkgv_revision')}". Mike Looijmans (2): fetch2/__init__.py: Make get_srcrev output configurable fetch2/git.py: Add gitpkgv_revision alternative version information lib/bb/fetch2/__init__.py | 9 ++++++--- lib/bb/fetch2/git.py | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 3 deletions(-) -- 1.7.9.5 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core