No chequear diferencias en la repo

pkgver o pkgrel deberían cambiar en cada cambio así que ese es chequeo suficiente
This commit is contained in:
Cat /dev/Nulo 2021-12-25 12:02:02 -03:00
parent 454b329c1d
commit 6c7675bc2a

View file

@ -7,18 +7,14 @@ fi
cd aports
aports_dir="$(pwd)"
git fetch
git checkout --force "$branch"
git reset --hard "$branch"
git fetch
git merge "origin/$branch"
for package in $(cat ../packages); do
cd "$aports_dir"
echo "[$0] [$package] Checking changes"
if git diff --stat "origin/$branch" "$package" | grep -F "$package"; then
echo "[$0] [$package] Detected changes, building..."
else
echo "[$0] [$package] No changes."
. "$package/APKBUILD"
repo=${package%/*}
package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
@ -28,7 +24,6 @@ for package in $(cat ../packages); do
else
echo "[$0] [$package] Package not built yet, building..."
fi
fi
echo "[$0] [$package] Patching APKBUILD to add $package-dbg..."
sed -i 's/subpackages="/subpackages="$pkgname-dbg /' "$package/APKBUILD"
@ -39,5 +34,3 @@ for package in $(cat ../packages); do
echo "[$0] [$package] !! FAILED TO BUILD !!"
fi
done
git merge "origin/$branch"