From 53f52624a9a680e961e6a01bfabd7f9410483327 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 18 Sep 2015 14:17:55 +0200 Subject: main/aports-build: fix repos upload messages check if we actually upload anything before we report that new packages are uploaded. --- main/aports-build/aports-build | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'main/aports-build/aports-build') diff --git a/main/aports-build/aports-build b/main/aports-build/aports-build index c5d33a09d1..90adb4643b 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 -- cgit v1.2.3