diff options
author | Constantin Musca <constantinx.musca@intel.com> | 2013-01-28 11:01:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-01-28 12:46:31 +0000 |
commit | ec81b985bb29a8562366f5343171e68a1f9cc4e9 (patch) | |
tree | 844cd394954a58c411ad85086445229e2acae879 /meta/classes/migrate_localcount.bbclass | |
parent | daf1298f6c34ce7efe4084ebbb1015b55c248383 (diff) | |
download | openembedded-core-ec81b985bb29a8562366f5343171e68a1f9cc4e9.tar.gz openembedded-core-ec81b985bb29a8562366f5343171e68a1f9cc4e9.tar.bz2 openembedded-core-ec81b985bb29a8562366f5343171e68a1f9cc4e9.zip |
migrate_localcount.bbclass: use PRAUTOINX instead of PN & PV
- we need to use PRAUTOINX (it covers all cases)
- it addresses bumped PE issues
[YOCTO #3071]
Signed-off-by: Constantin Musca <constantinx.musca@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/migrate_localcount.bbclass')
-rw-r--r-- | meta/classes/migrate_localcount.bbclass | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/meta/classes/migrate_localcount.bbclass b/meta/classes/migrate_localcount.bbclass index 59f14e8a34..3916ad4461 100644 --- a/meta/classes/migrate_localcount.bbclass +++ b/meta/classes/migrate_localcount.bbclass @@ -18,14 +18,13 @@ python migrate_localcount_handler () { if not revs or not counts: return - srcrev = bb.fetch2.get_srcrev(e.data) - bpv = pv[:pv.find(srcrev)] - if len(revs) != len(counts): bb.warn("The number of revs and localcounts don't match in %s" % pn) return - version = 'AUTOINC-%s-%s' % (pn, bpv) + version = e.data.getVar('PRAUTOINX', True) + srcrev = bb.fetch2.get_srcrev(e.data) + base_ver = 'AUTOINC-%s' % version[:version.find(srcrev)] pkgarch = e.data.getVar('PACKAGE_ARCH', True) value = max(int(count) for count in counts) @@ -40,7 +39,7 @@ python migrate_localcount_handler () { flock = bb.utils.lockfile("%s.lock" % df) with open(df, 'a') as fd: fd.write('PRAUTO$%s$%s$%s = "%s"\n' % - (version, pkgarch, srcrev, str(value))) + (base_ver, pkgarch, srcrev, str(value))) bb.utils.unlockfile(flock) } |