]> code.ossystems Code Review - openembedded-core.git/commit
package/prserv: Merge two similar functions into one
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Nov 2014 18:44:24 +0000 (18:44 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Feb 2015 17:39:51 +0000 (17:39 +0000)
commit508f7dfb301db30964bf77d370a9e48cb7f354f8
treeacd3571d09f5ae92081ba278b04cd235f64a13e4
parentd979f8589da79e02afac588e8b63d571f912f528
package/prserv: Merge two similar functions into one

Having these two separate functions handling PR values seems pointless,
and worse, there are impossible code branches mixed within them.

Merge them into one function and tweak comments so at least you
don't have to read both functions to figure out what is going on.

This does restructure the conditionals to try and aid readability.

(From OE-Core rev: 865d001de168915a5796e5c760f96bdd04cebd61)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/classes/package.bbclass
meta/classes/prserv.bbclass