]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package_manager/rpm: give out useful reason about unmatched packages
authorChen Qi <Qi.Chen@windriver.com>
Fri, 12 Sep 2025 03:33:23 +0000 (20:33 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 15 Sep 2025 16:52:52 +0000 (17:52 +0100)
commit00f871cd07d7f44788124510a75b7160fdc60bb5
treed02b5b3cf74b960e8de5f699d665aa5c528390c0
parent4c1f63a7618c5eef1684ecc52af50821a49e2e91
package_manager/rpm: give out useful reason about unmatched packages

Unmatched package error is a common error at rootfs. We want to give
out more useful information to user.

Before this change, if some user specifiy IMAGE_INSTALL += "catch2",
the error message will be like:

  No match for argument: catch2
  Error: Unable to find a match: catch2

With this patch, the error message will be like:

  No match for argument: catch2
  Error: Unable to find a match: catch2
  catch2 is a recipe. Its generated packages are: ['catch2-src', 'catch2-dbg', 'catch2-staticdev', 'catch2-dev', 'catch2-doc']
  Either specify a generated package or set ALLOW_EMPTY:${PN} = "1" in catch2 recipe

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager/rpm/__init__.py