diff options
Diffstat (limited to 'db-import-archlinux-src')
-rwxr-xr-x | db-import-archlinux-src | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/db-import-archlinux-src b/db-import-archlinux-src index ad4e4d4..b529f77 100755 --- a/db-import-archlinux-src +++ b/db-import-archlinux-src @@ -56,15 +56,16 @@ function sync_abs_libre() { # Sync from ABS and then sync from ABSLibre printf ":: Syncing ABSLibre...\t" - (rsync ${SYNCARGS} --delete-excluded \ - --exclude-from=${BLFILE} \ - ${ABSROOT} \ - ${ABSLIBRE} \ - && - for ARCH in i686 x86_64; do rsync -v -mrtq --no-motd --no-p --no-o --no-g --quiet --exclude=.git/ /tmp/abslibre/ ${ABSLIBRE}/${ARCH}/; done) || { + if ! rsync ${SYNCARGS} --delete-excluded --exclude-from=${BLFILE} ${ABSROOT} ${ABSLIBRE}; then printf "[FAILED]\n" return 1 - } + fi + for ARCH in i686 x86_64; do + if ! rsync -v -mrtq --no-motd --no-p --no-o --no-g --quiet --exclude=.git/ /tmp/abslibre/ ${ABSLIBRE}/${ARCH}/; then + printf "[FAILED]\n" + return 1 + fi + done # fix some permissions find "${ABSLIBRE}" -type d -print0 | xargs -0 chmod 755 |