From: Otavio Salvador Date: Thu, 23 Aug 2018 00:58:39 +0000 (-0300) Subject: linux-mfgtool.inc: This reduce the extender class X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=801658c710e3a59ce9dc8d5fa892f1865071fc94;p=meta-freescale.git linux-mfgtool.inc: This reduce the extender class This removes duplicated code from the extender class and instead calls the parent's code. Signed-off-by: Otavio Salvador --- diff --git a/recipes-kernel/linux/linux-mfgtool.inc b/recipes-kernel/linux/linux-mfgtool.inc index 915090dc..dc06c541 100644 --- a/recipes-kernel/linux/linux-mfgtool.inc +++ b/recipes-kernel/linux/linux-mfgtool.inc @@ -52,18 +52,9 @@ python () { class LinuxMfgToolExtender(ClassExtender): def extend_name(self, name): - if name.startswith("rtld"): - return name - if name.endswith("-" + self.extname): - name = name.replace("-" + self.extname, "") - if name.startswith("virtual/"): - subs = name.split("/", 1)[1] - if not subs.startswith(self.extname): - return "virtual/" + self.extname + "-" + subs - return name - if not name.startswith(self.extname): + if name.startswith("kernel-"): return self.extname + "-" + name - return name + return super().extend_name(name) clsextend = LinuxMfgToolExtender("mfgtool", d) clsextend.rename_packages()