aboutsummaryrefslogtreecommitdiffstats
path: root/main/aports-build/aports-build
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-09-18 14:17:55 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2015-09-18 14:18:57 +0200
commit53f52624a9a680e961e6a01bfabd7f9410483327 (patch)
tree32f90c75df4721dc19fb4f420b32ffa47e4a1fce /main/aports-build/aports-build
parente807a6800bf61d33fa5ada650ab59d109def9f42 (diff)
main/aports-build: fix repos upload messages
check if we actually upload anything before we report that new packages are uploaded.
Diffstat (limited to 'main/aports-build/aports-build')
-rw-r--r--main/aports-build/aports-build13
1 files changed, 7 insertions, 6 deletions
diff --git a/main/aports-build/aports-build b/main/aports-build/aports-build
index c5d33a09d14..90adb4643bc 100644
--- a/main/aports-build/aports-build
+++ b/main/aports-build/aports-build
@@ -167,15 +167,16 @@ while true; do
log "uploading packages to $repo"
for i in $upload_pkg; do
- if rsync -ruv --delete-delay --delay-updates \
- $repo/$arch $i/$repo/; then
- $upload_msg "$rel/$repo/$arch"
- else
+ rsync -rui --delete-delay --delay-updates \
+ $repo/$arch $i/$repo/ > /tmp/upload-$repo
+ if [ $? -ne 0]; then
rc=1
+ elif [ -s /tmp/upload-$repo ]; then
+ $upload_msg "$rel/$repo/$arch"
+ # report to irc that we are done with repo
+ send_irc "files from $_current uploaded to $repo"
fi
done
- # report to irc that we are done with repo
- send_irc "files from $_current uploaded to $repo"
done
[ $rc -eq 0 ] && touch /tmp/uploaded && sudo apk update