summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/nit-picker14
1 files changed, 10 insertions, 4 deletions
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 \