1
0
mirror of https://github.com/moparisthebest/arch-ppa synced 2025-02-16 07:00:15 -05:00

another tweak to stop aborting updates

This commit is contained in:
Travis Burtrum 2016-11-28 17:34:03 -05:00
parent 4f25b59774
commit a77fde4bd2

View File

@ -166,8 +166,8 @@ update() {
done done
# Check if package has uncommited changes # Check if package has uncommited changes
if [ $(git -C $basedir diff HEAD $basedir/src/$pkg | wc -l) -gt 0 ]; then if [ $(git -C $basedir diff HEAD $basedir/src/$pkg | wc -l) -gt 0 ]; then
echo "Package $pkg has uncommited changes. Commit or discard those changes first." echo "warning: Package $pkg has uncommited changes. Commit or discard those changes first."
return 1 #return 1
fi fi
# Use a temporary dir to download all PKGBUILDS atomically # Use a temporary dir to download all PKGBUILDS atomically
[ -z "$tmp_dl" ] && tmp_dl=`mktemp -d` [ -z "$tmp_dl" ] && tmp_dl=`mktemp -d`