From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1145593-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1F5A3138350 for <garchives@archives.gentoo.org>; Wed, 12 Feb 2020 13:44:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 64B9CE084A; Wed, 12 Feb 2020 13:44:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4B2DFE084A for <gentoo-commits@lists.gentoo.org>; Wed, 12 Feb 2020 13:44:10 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 617A934EC14 for <gentoo-commits@lists.gentoo.org>; Wed, 12 Feb 2020 13:44:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1AE0E10B for <gentoo-commits@lists.gentoo.org>; Wed, 12 Feb 2020 13:44:08 +0000 (UTC) From: "Ulrich Müller" <ulm@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org> Message-ID: <1581514806.1fa7be95b899bc1d90d868f6864ee65be798063e.ulm@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: check_eclasses_eapis.sh X-VCS-Directories: / X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 1fa7be95b899bc1d90d868f6864ee65be798063e X-VCS-Branch: master Date: Wed, 12 Feb 2020 13:44:08 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f7d362b8-21df-4384-9941-d2c24133c3fe X-Archives-Hash: b1d878afcf5d15d17b617d9a2a694683 commit: 1fa7be95b899bc1d90d868f6864ee65be798063e Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> AuthorDate: Wed Feb 12 13:40:06 2020 +0000 Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> CommitDate: Wed Feb 12 13:40:06 2020 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1fa7be95 check_eclasses_eapis.sh: Add sanity check for metadata files. Require a hyphen followed by a digit in their name, which must occur in a valid ${P} name. Otherwise the find will also pick up Manifest* files and recognize them as EAPI 0. Note that we cannot exclude Manifest* explicitly because it is a valid package name. Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> check_eclasses_eapis.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh index f3e1ff8..974bd3e 100755 --- a/check_eclasses_eapis.sh +++ b/check_eclasses_eapis.sh @@ -19,7 +19,7 @@ ECLASSES=$(echo *.eclass) popd > /dev/null #pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}" -find "${REPO_PATH}/metadata/md5-cache" -type f -exec awk -F= ' +find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]' -exec awk -F= ' BEGINFILE { n = split(FILENAME, f, "/") file = f[n-1] "/" f[n]