Skip to content

Commit 45faa79

Browse files
committed
pkg-auto: Fix occurences generation
Occurences file shows where the package name shows up in the repository. It tries to be smart, so that checking for sys-devel/gcc will not be showing sys-devel/gcc-config. But the smart check was flawed as it ignored the forms like sys-devel/gcc-${PV}. Noticed when trying to check occurences for sys-libs/libsepol and there were not enough occurences shown.
1 parent 5bde4cb commit 45faa79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg_auto/impl/pkg_auto_lib.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2742,7 +2742,7 @@ function grep_pkg() {
27422742
pkg=${1}; shift
27432743
# rest are directories
27442744

2745-
GIT_PAGER='' git -C "${scripts}" grep "${pkg}"'\(-[0-9]\|[^a-zA-Z0-9_-]\|$\)' -- "${@}" || :
2745+
GIT_PAGER='' git -C "${scripts}" grep "${pkg}"'\(-[0-9$]\|[^a-zA-Z0-9_-]\|$\)' -- "${@}" || :
27462746
}
27472747

27482748
# Prints the passed files preceding and following with BEGIN ENTRY and

0 commit comments

Comments
 (0)