]> 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>
Sat, 8 Nov 2014 11:07:59 +0000 (11:07 +0000)
commit865d001de168915a5796e5c760f96bdd04cebd61
tree9be08bb6cce0438c9320e3a71afd4f1f29fce2a3
parent0c21d06dea96ca5f19ac2e3136c66da582036a11
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.

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