From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 448851384B4 for ; Mon, 28 Dec 2015 08:49:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BA6F821C089; Mon, 28 Dec 2015 08:44:19 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A3F0521C07E for ; Mon, 28 Dec 2015 08:44:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id 0F3A73407D7; Mon, 28 Dec 2015 08:44:13 +0000 (UTC) X-Virus-Scanned: by amavisd-new using ClamAV at gentoo.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-9999 required=5.5 tests=[SPF_NEUTRAL=0.652] autolearn=no autolearn_force=no Received: from smtp.gentoo.org ([127.0.0.1]) by localhost (smtp.gentoo.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9uZfgf7WLnZ2; Mon, 28 Dec 2015 08:44:08 +0000 (UTC) Received: from leo.ics.kfa-juelich.de (static-2-1006.not-your-server.de [IPv6:2a01:4f8:191:22ca::2:1006]) by smtp.gentoo.org (Postfix) with ESMTP id 3C24C340754; Mon, 28 Dec 2015 08:44:07 +0000 (UTC) From: Justin Lecher To: gentoo-dev@lists.gentoo.org Cc: qa@gentoo.org, Justin Lecher Subject: [gentoo-dev] [PATCH 8/9] check-reqs.eclass: Require units for CHECKREQS_ in EAPIs > 5 Date: Mon, 28 Dec 2015 09:43:54 +0100 Message-Id: <1451292235-25265-9-git-send-email-jlec@gentoo.org> X-Mailer: git-send-email 2.6.4 In-Reply-To: <1451292235-25265-1-git-send-email-jlec@gentoo.org> References: <1451292235-25265-1-git-send-email-jlec@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 39e2c912-299f-4ad6-b5f8-614ca7b0d269 X-Archives-Hash: 78258936acfa1a1255c047faaaab1cf8 Signed-off-by: Justin Lecher --- eclass/check-reqs.eclass | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/eclass/check-reqs.eclass b/eclass/check-reqs.eclass index 4513904..26f2dc1 100644 --- a/eclass/check-reqs.eclass +++ b/eclass/check-reqs.eclass @@ -198,13 +198,14 @@ check-reqs_get_number() { local unit=${1:(-1)} local size=${1%[GMT]} + local msg=eerror + [[ ${EAPI:-0} == [012345] ]] && msg=eqawarn # Check for unset units and warn about them. # Backcompat. if [[ ${size} == ${1} ]]; then - eqawarn "Package does not specify unit for the size check" - eqawarn "Assuming mebibytes." - eqawarn "File bug against the package. It should specify the unit." + ${msg} "Package does not specify unit for the size check" + ${msg} "File bug against the package. It should specify the unit." fi echo ${size} -- 2.6.4