contrib: lsupgrade: do not search the OpenWrt "packages" feed

Iterating over all the package directories in the OpenWrt feed takes a
while, even though it doesn't contain any upgrade scripts. Skip the
whole directory.
This commit is contained in:
Matthias Schiffer 2022-01-03 02:41:33 +01:00
parent 2924afe562
commit c0afb9cc39
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -28,7 +28,7 @@ fi
pushd "$(dirname "$0")/.." >/dev/null pushd "$(dirname "$0")/.." >/dev/null
find ./package packages -name Makefile | while read -r makefile; do find ./package packages -name Makefile | grep -v '^packages/packages/' | while read -r makefile; do
dir="$(dirname "$makefile")" dir="$(dirname "$makefile")"
pushd "$dir" >/dev/null pushd "$dir" >/dev/null