Commit 519987f1 authored by Leo's avatar Leo

aports-lint: try harder to find the invalid APKBUILDs

parent e3947c3d
......@@ -252,7 +252,18 @@ deprecated_packages() {
_checkdepends="$(echo $checkdepends | tr " " "\n" | sort -u)"
for val in $deprecated_packages; do
. "$PWD"/../../$val/APKBUILD || {
local _apkbuild
if [ -f "$PWD"/$val/APKBUILD ]; then
_apkbuild="$PWD"/$val/APKBUILD
elif [ -f "$PWD"../$val/APKBUILD ]; then
_apkbuild="$PWD"/$val/APKBUILD
elif [ -f "$PWD"/../../$val/APKBUILD ]; then
_apkbuild="$PWD"/../../$val/APKBUILD
else
echo "Failed to find APKBUILD for '$val'" ;
continue
fi
. "$_apkbuild" || {
echo "Failed to source APKBUILD in '$val'" ;
continue
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment