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]