[meta-virtualization] [PATCH 01/14] Add helper meta data to find upstream versions correctly
jackie.huang at windriver.com
jackie.huang at windriver.com
Tue Apr 14 22:58:24 PDT 2015
From: Jackie Huang <jackie.huang at windriver.com>
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 <jackie.huang at windriver.com>
---
.../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 name> = "recipe_url"
+# - This is the url used by the package checking system to
+# get the latest version of the package
+# REGEX_pn-<recipe name> = "package_regex"
+# - This is the regex the package checking system uses to
+# parse the page found at REGEX_URI_pn-<recipe name>
+#
+
+COMMON_REGEX = "(?P<pver>(\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<pver>\d+\.\d+\.(\d\.?)*)"
+
+GITTAGREGEX_pn-python-glanceclient = "${GITTAGREGEX_COMMON}"
+GITTAGREGEX_pn-python-keystoneclient = "${GITTAGREGEX_COMMON}"
+GITTAGREGEX_pn-python-neutronclient = "(?P<pver>\d+\.\d+\.(\d\.?)+)"
+GITTAGREGEX_pn-python-novaclient = "${GITTAGREGEX_COMMON}"
--
1.9.1
More information about the meta-virtualization
mailing list