[bitbake-devel] [PATCH v1][RESEND 0/1] bitbake: fetch2/git: add SRC_URI option versiontag

pascal.huerst at gmail.com pascal.huerst at gmail.com
Tue Dec 10 08:27:59 UTC 2019


From: Pascal Huerst <pascal.huerst at gmail.com>

This patch adds a new option to SRC_URI to fetch the latest tagged release.

We want to fetch the latest tagged release from our repositories. Bitbake
already comes with latest_versionstring(), which fetches the tags from a
remote, using ls-remote, sorts them and finds the newest using variable
${UPSTREAM_CHECK_GITTAGREGEX} which can be used to set a regular expression.

Please let me know what you think and what could be improved, or if there is
a better way to achieve this.

Thanks,
Pascal


Pascal Huerst (1):
  bitbake: fetch2/git: add SRC_URI option versiontag

 bitbake/lib/bb/fetch2/git.py  | 24 ++++++++++++++++++++----
 bitbake/lib/bb/tests/fetch.py | 18 ++++++++++++++++++
 2 files changed, 38 insertions(+), 4 deletions(-)

-- 
2.23.0



More information about the bitbake-devel mailing list