diff options
author | Matt Spinler <spinler@us.ibm.com> | 2020-02-20 20:32:31 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-03-16 18:50:14 +0300 |
commit | e4fa1911baeb0a2160caedb689f956aeb66d9329 (patch) | |
tree | 5598f6615391d418bd565136efdd20bee758f50f /meta-phosphor/classes/obmc-xmlpatch.bbclass | |
parent | a159fff1a5375e65ec7de96a208b6a0a74fa091b (diff) | |
download | openbmc-e4fa1911baeb0a2160caedb689f956aeb66d9329.tar.xz |
obmc-xmlpatch.bbclass: Use python3
Use python3native and remove a filter statement.
(From meta-phosphor rev: c55fc52815dcce6d2f5eeb77ed5a1aaafd990958)
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Ic25919bc947b1733cfac0573a41f35a5f12ed194
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/classes/obmc-xmlpatch.bbclass')
-rw-r--r-- | meta-phosphor/classes/obmc-xmlpatch.bbclass | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-phosphor/classes/obmc-xmlpatch.bbclass b/meta-phosphor/classes/obmc-xmlpatch.bbclass index 9dc37507a..359820622 100644 --- a/meta-phosphor/classes/obmc-xmlpatch.bbclass +++ b/meta-phosphor/classes/obmc-xmlpatch.bbclass @@ -7,15 +7,15 @@ #See patchxml.py for details on the XML patch format. # -inherit pythonnative +inherit python3native inherit obmc-phosphor-utils do_patch[depends] = "mrw-patch-native:do_populate_sysroot" def find_patch_files(d): all_patches = listvar_to_list(d, 'SRC_URI') - xml_patches = filter(lambda x: x.endswith('.patch.xml') and - x.startswith('file://'), all_patches) + xml_patches = [x for x in all_patches if x.endswith('.patch.xml') and + x.startswith('file://')] return [x.lstrip('file://') for x in xml_patches] |