diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index 498d8289342..5ca384a520b 100644 --- a/common/hooks/pre-pkg/04-generate-runtime-deps.sh +++ b/common/hooks/pre-pkg/04-generate-runtime-deps.sh @@ -67,7 +67,7 @@ hook() { exec 3<&0 # save stdin exec < $depsftmp while read f; do - lf=${f#${DESTDIR}} + lf=${f#${PKGDESTDIR}} if [ "${skiprdeps/${lf}/}" != "${skiprdeps}" ]; then msg_normal "Skipping dependency scan for ${lf}\n" continue