From 959ae40f342d4ba0bcd0ceb72a4c1eea84c3f13d Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 2 Jul 2016 21:49:21 +0200 Subject: [PATCH] sysmocom-archiver: Make it somehow work with python3 Yocto master has switched to use python3 and this means all of our bbclasses must work with it. The cmp function has been removed and the closest is this dropin routine. Start to use it. --- classes/sysmocom-archiver.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/sysmocom-archiver.bbclass b/classes/sysmocom-archiver.bbclass index 3bc84b0..b3ac877 100644 --- a/classes/sysmocom-archiver.bbclass +++ b/classes/sysmocom-archiver.bbclass @@ -7,6 +7,10 @@ ARCHIVE_TYPE ?= "TAR SRPM" DISTRO ?= "poky" PATCHES_ARCHIVE_WITH_SERIES = 'TRUE' + +def compat_cmp(a, b): + return (a>b)-(a