From 17b037e17bac61949fa1ef03fec743a3e8424dec Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Tue, 20 Aug 2019 12:05:19 +0200 Subject: bin/nit-picker: ignore rsync errors - it simply means, our information is outdated --- bin/nit-picker | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'bin/nit-picker') diff --git a/bin/nit-picker b/bin/nit-picker index 66333db..562f239 100755 --- a/bin/nit-picker +++ b/bin/nit-picker @@ -200,9 +200,12 @@ while pgrep -x ii >/dev/null \ fi ;; 'binary-dependencies') - ${master_mirror_rsync_command} \ + if ! ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/pool/${parameters}" \ - "${tmp_dir}/" + "${tmp_dir}/"; then + rm -f "${tmp_dir}/${parameters}" + continue + fi extract_dependencies_from_package \ "${tmp_dir}/${parameters}" \ > "${tmp_dir}/pkg-deps" @@ -260,10 +263,13 @@ while pgrep -x ii >/dev/null \ "${tmp_dir}/pkg-deps" ;; 'binary-signature') - ${master_mirror_rsync_command} \ + if ! ${master_mirror_rsync_command} \ "${master_mirror_rsync_directory}/pool/${parameters}" \ "${master_mirror_rsync_directory}/pool/${parameters}.sig" \ - "${tmp_dir}/" + "${tmp_dir}/"; then + rm -f "${tmp_dir}/${parameters}" "${tmp_dir}/${parameters}.sig" + continue + fi unset error_message if ! gpg_output=$( gpg --batch --status-fd 1 -q --homedir /etc/pacman.d/gnupg \ -- cgit v1.2.3-70-g09d2