summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2020-02-20 20:32:31 +0300
committerAndrew Geissler <geissonator@yahoo.com>2020-03-16 18:50:14 +0300
commite4fa1911baeb0a2160caedb689f956aeb66d9329 (patch)
tree5598f6615391d418bd565136efdd20bee758f50f /meta-phosphor/classes
parenta159fff1a5375e65ec7de96a208b6a0a74fa091b (diff)
downloadopenbmc-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')
-rw-r--r--meta-phosphor/classes/obmc-xmlpatch.bbclass6
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]