diff options
author | Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com> | 2013-07-26 18:58:17 +0300 |
---|---|---|
committer | Saul Wold <sgw@linux.intel.com> | 2013-07-30 07:25:40 -0700 |
commit | 1d709d61da99f0e8a897f40a9d2a14bfaa1ee77e (patch) | |
tree | 4054106aad19de8fec2415607bcf68daaf0bafaf /meta/classes/distrodata.bbclass | |
parent | 2275dd9507fa7b8c3e62ffcf8b9b16120f16fe8f (diff) | |
download | openembedded-core-1d709d61da99f0e8a897f40a9d2a14bfaa1ee77e.tar.gz openembedded-core-1d709d61da99f0e8a897f40a9d2a14bfaa1ee77e.tar.bz2 openembedded-core-1d709d61da99f0e8a897f40a9d2a14bfaa1ee77e.zip |
distrodata.bbclass: Include PRSPV variable in upstream version checking
The PRSPV variable is used for the packages that have different
representation for a same upstream and local version (e.g 2.0 vs 20).
In this case, the system is using PRSPV instead of PV when comparing
the local and upstream versions.
The packages that are using this modification are the following:
* zip
* unzip
* docbook-sgml-dtd-3.1-native
* docbook-sgml-dtd-4.1-native
Signed-off-by: Emilia Ciobanu <emilia.maria.silvia.ciobanu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r-- | meta/classes/distrodata.bbclass | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass index 1774dc035d..aef7973945 100644 --- a/meta/classes/distrodata.bbclass +++ b/meta/classes/distrodata.bbclass @@ -563,7 +563,10 @@ python do_checkpkg() { chk_uri = src_uri pdesc = localdata.getVar('DESCRIPTION', True) pgrp = localdata.getVar('SECTION', True) - pversion = localdata.getVar('PV', True) + if localdata.getVar('PRSPV', True): + pversion = localdata.getVar('PRSPV', True) + else: + pversion = localdata.getVar('PV', True) plicense = localdata.getVar('LICENSE', True) psection = localdata.getVar('SECTION', True) phome = localdata.getVar('HOMEPAGE', True) @@ -590,9 +593,16 @@ python do_checkpkg() { (type, host, path, user, pswd, parm) = bb.decodeurl(uri) if type in ['http', 'https', 'ftp']: - pcurver = d.getVar('PV', True) + if d.getVar('PRSPV', True): + pcurver = d.getVar('PRSPV', True) + else: + pcurver = d.getVar('PV', True) else: - pcurver = d.getVar("SRCREV", True) + if d.getVar('PRSPV', True): + pcurver = d.getVar('PRSPV', True) + else: + pcurver = d.getVar("SRCREV", True) + if type in ['http', 'https', 'ftp']: newver = pcurver @@ -614,7 +624,10 @@ python do_checkpkg() { alturi = bb.encodeurl([type, host, altpath, user, pswd, {}]) my_uri = d.getVar('REGEX_URI', True) if my_uri: - newver = d.getVar('PV', True) + if d.getVar('PRSPV', True): + newver = d.getVar('PRSPV', True) + else: + newver = d.getVar('PV', True) else: newver = check_new_dir(alturi, dirver, d) altpath = path @@ -736,7 +749,7 @@ python do_checkpkg() { pupver = latest_pv + tmp3.group('git_prefix') + latest_head else: if not tmp3: - bb.plain("#DEBUG# Current version (%s) doesn't match the usual pattern" %pversion) + bb.plain("#DEBUG# Package %s: current version (%s) doesn't match the usual pattern" %(pname, pversion)) elif type == 'svn': options = [] if user: |