From patchwork Mon Nov 30 20:40:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marco Felsch X-Patchwork-Id: 106593 Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.42146.1796071233000660133 for ; Mon, 30 Nov 2026 12:40:33 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@pengutronix.de header.s=20260414 header.b=FCbh/ra/; spf=pass (domain: pengutronix.de, ip: 185.203.200.13, mailfrom: m.felsch@pengutronix.de) Received: from dude06.red.stw.pengutronix.de (dude06.red.stw.4.pengutronix.de [10.17.1.27]) (Authenticated sender: relay-from-dude06.red.stw.pengutronix.de) by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 4AF16205AAF; Mon, 30 Nov 2026 21:40:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796071226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bmwrFt3+2ZcEhyDiDSwEditFN9OS2xDDQzvI6wV6Wns=; b=FCbh/ra/FZDQJiJXKzYrMb+8Wv0YLFeNo1zxMy1N+02GGLc34CC1E8X/oNMzEXY/iIEDiq vAgRQfkinsepzEI43iX08YrNdC8CulxlhSEk2DSx5z2QQ+rxFDJDRB7q46ybvqdWPWsu90 oW1gD0sJyOBNrbfWY77FNwf550nBmwAIo5whXihGQOaCUPKtwX2ji8d7sJG7OP02/7jFse yGH1KurN4fAFbITixJ+onOvbCVsZ7rYzlFIGRqQgm+ff7f4uIpO8NokfWRSw5wLCb7nbYZ 5oTrVToUU2d1fjUoBfIVJSgGplhsV1a4Pudbn5v1kCtHlrlibMXgDmVrXNRFiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de; s=20260414; t=1796071226; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=bmwrFt3+2ZcEhyDiDSwEditFN9OS2xDDQzvI6wV6Wns=; b=AWBiBogUBBPTfUyi6qionvX5CQKNcx3+ePiSyxptOPPuv2r8+zmtlobi2gooCXD5CVVH0e X3fOijKeOc0VfjVtlsu+y+r0N2ku9gbRqgbuvdJ/eNPKT4tR7T1yzE84EAbM2pzwbGOTQs 627ga0PKDqEaFOkrjPx16OR5BnDsLU4T2PRGJqEcdGUdtPzlOopC6T8dkDQYZ5tTA1E1JK vqn+Sd1Q6siRU+IkUeyp20wMkI2f3X2lhi+i3bxt1xqrlV4NiUTgVUSmiZxUntfg/lppPb bA3J64V/RQXp//mvtr3tQNtVe90GRxuPB+xhEf7KMUeSXyrJ6tM7l5IFn09UYw== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-dude06.red.stw.pengutronix.de smtp.mailfrom=m.felsch@pengutronix.de ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796071226; a=rsa-sha256; cv=none; b=M7k6qHMmTaDdrZe+Ni3bo/dOGD8z/1ysEQL/kZ007R8+ihWcZaKHjjUbLVwyz6WAeebf9f VcNmh8E9hqTiYQjNwrYo4U7lW1qpLo0lgbjdA37ma8+j53v1dwpo4/tW8uo1+rrQ79qNZq D1Lw6PfMBSxRJjUTlRzUEePTsdtb1LGhzPaAge3Y/n4XKjkgl6U0jBOQ5wUs6cft6+/IMP KUIR7NhnWYzNh/0TBXT2MJrJ0ZIOtxrwP3a9izo6kagg6Ap2WRaXd6Elp7BUDR8I+dHgZc oeEfiR2ojHXy0UKb38uZ2/OzcQSJlmEvqmn156BLEE0KogyMkEKkcjrd0YXSEg== Received: from dude06.red.stw.pengutronix.de (localhost [IPv6:::1]) by dude06.red.stw.pengutronix.de (Postfix) with ESMTP id 330E2640D65; Mon, 30 Nov 2026 21:40:26 +0100 (CET) From: Marco Felsch Date: Mon, 30 Nov 2026 21:40:25 +0100 Subject: [PATCH v4 1/3] classes/cargo-update-recipe-crates: use bb.warn() instead of print() MIME-Version: 1.0 Message-Id: <20261130-mfe-multi-cargo-lock-files-v4-1-a3ebce5cc283@pengutronix.de> References: <20261130-mfe-multi-cargo-lock-files-v4-0-a3ebce5cc283@pengutronix.de> In-Reply-To: <20261130-mfe-multi-cargo-lock-files-v4-0-a3ebce5cc283@pengutronix.de> To: openembedded-core@lists.openembedded.org Cc: peter.kjellerstedt@axis.com, paul@pbarker.dev, yocto@pengutronix.de, Marco Felsch X-Mailer: b4 0.14.2 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Mon, 30 Nov 2026 20:40:43 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251646 The do_update_crates task is a regular python task since commit d56fb40b32c1 ("classes/cargo-update-recipe-crates: use tomllib directly"), so the print() output only ends up in the task log and is neither shown on the console nor counted in the warning summary. Make use of bb.warn() to fix this. Signed-off-by: Marco Felsch --- meta/classes-recipe/cargo-update-recipe-crates.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/cargo-update-recipe-crates.bbclass b/meta/classes-recipe/cargo-update-recipe-crates.bbclass index 0767b566ee287d11dc2e1e6d0aeea0a0d3b225b8..d4318bc9f5749503cb7995927e2e54b9771a6b75 100644 --- a/meta/classes-recipe/cargo-update-recipe-crates.bbclass +++ b/meta/classes-recipe/cargo-update-recipe-crates.bbclass @@ -40,7 +40,7 @@ python do_update_crates() { crates_candidates = list(filter(lambda c: 'crates.io' in c.get('source', ''), crates['package'])) if not crates_candidates: - print("WARNING: Unable to find any candidate crates that use crates.io") + bb.warn("Unable to find any candidate crates that use crates.io") return None # Update crates uri and their checksum, to avoid name clashing on the checksum