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,27 +7,22 @@ fi
cd aports cd aports
aports_dir="$(pwd)" aports_dir="$(pwd)"
git fetch
git checkout --force "$branch" git checkout --force "$branch"
git reset --hard "$branch" git reset --hard "$branch"
git fetch git merge "origin/$branch"
for package in $(cat ../packages); do for package in $(cat ../packages); do
cd "$aports_dir" cd "$aports_dir"
echo "[$0] [$package] Checking changes" . "$package/APKBUILD"
if git diff --stat "origin/$branch" "$package" | grep -F "$package"; then repo=${package%/*}
echo "[$0] [$package] Detected changes, building..." package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
if test -f "$package_file"; then
echo "[$0] [$package] Package already built, skipping..."
continue
else else
echo "[$0] [$package] No changes." echo "[$0] [$package] Package not built yet, building..."
. "$package/APKBUILD"
repo=${package%/*}
package_file="$HOME/packages/$repo/$(uname -m)/$pkgname-dbg-$pkgver-r$pkgrel.apk"
if test -f "$package_file"; then
echo "[$0] [$package] Package already built, skipping..."
continue
else
echo "[$0] [$package] Package not built yet, building..."
fi
fi fi
echo "[$0] [$package] Patching APKBUILD to add $package-dbg..." echo "[$0] [$package] Patching APKBUILD to add $package-dbg..."
@ -39,5 +34,3 @@ for package in $(cat ../packages); do
echo "[$0] [$package] !! FAILED TO BUILD !!" echo "[$0] [$package] !! FAILED TO BUILD !!"
fi fi
done done
git merge "origin/$branch"