From 975892760b2f5a327f3f99645d00a8a301cd4f9c Mon Sep 17 00:00:00 2001 From: Jackie Huang Date: Wed, 15 Apr 2015 13:58:24 +0800 Subject: Add helper meta data to find upstream versions correctly This is referred to: meta-yocto/conf/distro/include/package_regex.inc And is used by the auto-upgrade-helper utility: http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/ It helps generate upgrades automatically for recipes based on new versions being published upstream. The initial list includes *client recipes in meta-openstack. Signed-off-by: Jackie Huang Signed-off-by: Bruce Ashfield --- .../distro/include/package_regex_openstack.inc | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 meta-openstack/conf/distro/include/package_regex_openstack.inc diff --git a/meta-openstack/conf/distro/include/package_regex_openstack.inc b/meta-openstack/conf/distro/include/package_regex_openstack.inc new file mode 100644 index 0000000..b72b2d1 --- /dev/null +++ b/meta-openstack/conf/distro/include/package_regex_openstack.inc @@ -0,0 +1,42 @@ +# package_regex_openstack.inc - This file contains data that tracks +# upstream project associated with a given recipe. This list is needed +# for recipes that version information can not be automagically discovered. +# As we automate this checking, this file will slowly be reduced. +# +# This data is used by the auto-upgrade-helper, to use it, you could +# add the following to your conf/local.conf: +# --------------- snip --------------- +# INHERIT =+ "distrodata" +# require conf/distro/include/package_regex_openstack.inc +# --------------- snip --------------- +# +# Fore more details about auto-upgrade-help, please refer to: +# http://git.yoctoproject.org/cgit/cgit.cgi/auto-upgrade-helper/tree/README +# +# The format is as a bitbake variable override for each recipe +# +# REGEX_URI_pn- = "recipe_url" +# - This is the url used by the package checking system to +# get the latest version of the package +# REGEX_pn- = "package_regex" +# - This is the regex the package checking system uses to +# parse the page found at REGEX_URI_pn- +# + +COMMON_REGEX = "(?P(\d+[\.-_]*)+)" + +# PyPI sites +REGEX_URI_pn-python-cephclient = "https://pypi.python.org/pypi/python-cephclient/" +REGEX_pn-python-cephclient = "/python-cephclient/${COMMON_REGEX}" +REGEX_URI_pn-python-hp3parclient = "https://pypi.python.org/pypi/hp3parclient/" +REGEX_pn-python-hp3parclient = "/hp3parclient/${COMMON_REGEX}" +REGEX_URI_pn-python-openstackclient = "https://pypi.python.org/pypi/python-openstackclient/" +REGEX_pn-python-openstackclient = "/python-openstackclient/${COMMON_REGEX}" + +# GIT +GITTAGREGEX_COMMON = "(?P\d+\.\d+\.(\d\.?)*)" + +GITTAGREGEX_pn-python-glanceclient = "${GITTAGREGEX_COMMON}" +GITTAGREGEX_pn-python-keystoneclient = "${GITTAGREGEX_COMMON}" +GITTAGREGEX_pn-python-neutronclient = "(?P\d+\.\d+\.(\d\.?)+)" +GITTAGREGEX_pn-python-novaclient = "${GITTAGREGEX_COMMON}" -- cgit v1.2.3-54-g00ecf