]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 5 Oct 2016 15:30:46 +0000 (17:30 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 6 Oct 2016 06:51:00 +0000 (07:51 +0100)
commitd067b0e1e48a4efadb94e0d855608f0c19b43a16
tree126a92ef990765169005bfd92ec780791ae9ccc6
parent2334201960020e8495891148c89d6c16e0414b0a
package_manager.py: Allow multiple regexps in PACKAGE_EXCLUDE_COMPLEMENTARY

The PACKAGE_EXCLUDE_COMPLEMENTARY variable can currently only contain
one regular expression. This makes it hard to add to it from different
configuration files and recipes.

Allowing it to contain multiple, whitespace separated regular
expressions should be backwards compatible as it is assumed that
whitespace is not used in package names and thus is not used in any
existing instances of the variable.

After this change, the following three examples should be equivalent:

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo|bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo bar"

  PACKAGE_EXCLUDE_COMPLEMENTARY = "foo"
  PACKAGE_EXCLUDE_COMPLEMENTARY += "bar"

(From OE-Core rev: a5f7e98a94e96d40b1276c85249619aa8d7be847)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py