]> code.ossystems Code Review - openembedded-core.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>
Wed, 5 Oct 2016 22:22:33 +0000 (23:22 +0100)
commita5f7e98a94e96d40b1276c85249619aa8d7be847
treeddd20aaa138e4410b23a2b62174bf674ac3dceb6
parentac4ca41d3a27356d46c0c39053e74d3519b24c44
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"

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