]> code.ossystems Code Review - openembedded-core.git/commit
base.bbclass: Fix PR increment bug when PR number is a single digit
authorKhem Raj <raj.khem@gmail.com>
Mon, 16 May 2011 18:18:38 +0000 (11:18 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 May 2011 13:38:52 +0000 (14:38 +0100)
commit9aeaae7b786a42d213ad4224743dfd49e2324077
treeece72afa13d2ac601e70296705edf3e98ffaf74a
parentb41148cda9f0cc292b662a8473f26bc1ee0148f3
base.bbclass: Fix PR increment bug when PR number is a single digit

PRINC which should add to base PR value has a problem when
the PR is single digit e.g. r0 - r9. Current algorithm
needed atleasts 2 digits to successfully populate end and begin
markers.

We reimplement the incrementing algorithm using regular expressions
which addressed the above mentioned problem and
simplifies the logic a bit and gets rid of loops and conditionals

Signed-off-by: Khem Raj <raj.khem@gmail.com>
meta/classes/base.bbclass