diff options
Diffstat (limited to 'tools/cpm/package/which.sh')
| -rwxr-xr-x | tools/cpm/package/which.sh | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/cpm/package/which.sh b/tools/cpm/package/which.sh index 24c80760e3..905d055e87 100755 --- a/tools/cpm/package/which.sh +++ b/tools/cpm/package/which.sh @@ -3,10 +3,6 @@ # SPDX-FileCopyrightText: Copyright 2026 crueter # SPDX-License-Identifier: LGPL-3.0-or-later -# check which file a package is in +# check if a package is defined -JSON=$(echo "$CPMFILES" | xargs grep -l "\"$1\"") - -[ -n "$JSON" ] || { echo "!! No cpmfile definition for $1" >&2 && exit 1; } - -echo "$JSON" +echo "$LIBS" | grep "$1" >/dev/null 2>&1 |
