1 |
commit: 1fa7be95b899bc1d90d868f6864ee65be798063e |
2 |
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 12 13:40:06 2020 +0000 |
4 |
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 12 13:40:06 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=1fa7be95 |
7 |
|
8 |
check_eclasses_eapis.sh: Add sanity check for metadata files. |
9 |
|
10 |
Require a hyphen followed by a digit in their name, which must occur |
11 |
in a valid ${P} name. Otherwise the find will also pick up Manifest* |
12 |
files and recognize them as EAPI 0. |
13 |
|
14 |
Note that we cannot exclude Manifest* explicitly because it is a valid |
15 |
package name. |
16 |
|
17 |
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org> |
18 |
|
19 |
check_eclasses_eapis.sh | 2 +- |
20 |
1 file changed, 1 insertion(+), 1 deletion(-) |
21 |
|
22 |
diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh |
23 |
index f3e1ff8..974bd3e 100755 |
24 |
--- a/check_eclasses_eapis.sh |
25 |
+++ b/check_eclasses_eapis.sh |
26 |
@@ -19,7 +19,7 @@ ECLASSES=$(echo *.eclass) |
27 |
popd > /dev/null |
28 |
|
29 |
#pquery --attr eapi --attr inherited --raw --all --repo portdir > "${TMPEAPIS}" |
30 |
-find "${REPO_PATH}/metadata/md5-cache" -type f -exec awk -F= ' |
31 |
+find "${REPO_PATH}/metadata/md5-cache" -type f -name '*-[0-9]' -exec awk -F= ' |
32 |
BEGINFILE { |
33 |
n = split(FILENAME, f, "/") |
34 |
file = f[n-1] "/" f[n] |