diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-09-18 17:51:58 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-03-01 22:13:55 +0000 |
commit | 6a07697a6dcb5e77aed4b01df4b30024c4b3d0fe (patch) | |
tree | 793e5f235a573e7eb881ca82abb3e0def3d816a6 /meta/lib/oeqa | |
parent | 1b7a9d4f63d07d61d53daac12da275e8ef2feb24 (diff) | |
download | poky-6a07697a6dcb5e77aed4b01df4b30024c4b3d0fe.tar.gz |
package_manager: Filter to only rpms we depend upon
Currently do_rootfs gets to see all rpms in the deploy directory. This filters
that view to only rpms which the image recipe has actual depends upon which
potentially removes some sources of confusion in the image construction.
This makes builds more reproducibile and also fixes contamination issues
where dnf picks up packages it shouldn't be able to 'see'.
[YOCTO #12039]
(From OE-Core rev: 85e72e129362db896b0d368077033e4a2e373cf9)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/utils/package_manager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/package_manager.py b/meta/lib/oeqa/utils/package_manager.py index 724afb2b5e..afd5b8e75f 100644 --- a/meta/lib/oeqa/utils/package_manager.py +++ b/meta/lib/oeqa/utils/package_manager.py | |||
@@ -14,7 +14,8 @@ def get_package_manager(d, root_path): | |||
14 | if pkg_class == "rpm": | 14 | if pkg_class == "rpm": |
15 | pm = RpmPM(d, | 15 | pm = RpmPM(d, |
16 | root_path, | 16 | root_path, |
17 | d.getVar('TARGET_VENDOR')) | 17 | d.getVar('TARGET_VENDOR'), |
18 | filterbydependencies=False) | ||
18 | pm.create_configs() | 19 | pm.create_configs() |
19 | 20 | ||
20 | elif pkg_class == "ipk": | 21 | elif pkg_class == "ipk": |