From 1b8a298689a95c1943f18d8d9c24589e64bbc7b7 Mon Sep 17 00:00:00 2001 From: Mark Asselstine Date: Thu, 25 Sep 2014 15:16:33 -0400 Subject: housekeeping: Add a non-numeric PR prefix to allow PRINC in bbappends Although the use of PRINC is deprecated in later versions of Yocto it may still be used and if you are using this layer with older Yocto it is recommended for use in bbappends. It is therefore expected to work. PRINC expects a non-numeric prefix followed by a numeric value, as can be seen in base.bbclass pr_prefix = re.search("\D+",pr) prval = re.search("\d+",pr) if pr_prefix is None or prval is None: bb.error("Unable to analyse format of PR variable: %s" % pr) Failing to stick to this convention yields a parsing error when you attempt to use PRINC: ERROR: Unable to analyse format of PR variable Adding the non-numeric prefix allows PRINC use in bbappends to function correctly. Signed-off-by: Mark Asselstine --- meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb') diff --git a/meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb b/meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb index 4bc4c74..babd0f5 100644 --- a/meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb +++ b/meta-openstack/recipes-devtools/python/python-warlock_1.0.1.bb @@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://README.md;md5=97b002bcda83d22e7d3fd1427688a6a6" DEPENDS += "python-jsonschema python-jsonpatch" -PR = "0" +PR = "r0" SRCNAME = "warlock" SRC_URI = "http://pypi.python.org/packages/source/w/${SRCNAME}/${SRCNAME}-${PV}.tar.gz" -- cgit v1.2.3-54-g00ecf