check-duplicates.sh: skip "eclass/tests"

Signed-off-by: Anna (cybertailor) Vyalkova <cyber+gentoo@sysrq.in>
This commit is contained in:
Anna (cybertailor) Vyalkova
2024-01-22 23:08:31 +05:00
parent 16fb7f1d95
commit 580d1b4f16

View File

@@ -5,15 +5,17 @@
# This checks for potential and exact package matches within an overlay & ::gentoo
# Note that this is not going to be 100% accurate
EXCLUDE='^(.git|.github|metadata|profiles|scripts)/|^eclass/tests$|metadata.xml'
GENTOO_DIR="/var/db/repos/gentoo"
GENTOO_PACKAGES=(
$(find ${GENTOO_DIR} -mindepth 2 -maxdepth 2 -printf "%P\n" \
| sort | grep -Ev "^(.git|.github|metadata|profiles|scripts)/|metadata.xml"
| sort | grep -Ev "${EXCLUDE}"
)
)
REPO_PACKAGES=(
$(find . -mindepth 2 -maxdepth 2 -printf "%P\n" \
| sort | grep -Ev "^(.git|.github|metadata|profiles|scripts)/|metadata.xml"
| sort | grep -Ev "${EXCLUDE}"
)
)