diff options
author | Joseph Graham <joseph@xylon.me.uk> | 2017-06-13 12:21:50 +0100 |
---|---|---|
committer | Joseph Graham <joseph@xylon.me.uk> | 2017-06-13 12:21:50 +0100 |
commit | bdeef0a6cd604d5adfeb8a75ec67633d16805009 (patch) | |
tree | 8e3b703f5a3755b174adfd086589fcb60f11570c /pacman2pacman-get | |
parent | 3b86127cfe9db0d422549ed3e014b4fb1736069c (diff) |
Improved code that handles the delay between transmission saying a
file is downloaded and it being on disk.
Diffstat (limited to 'pacman2pacman-get')
-rw-r--r-- | pacman2pacman-get | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/pacman2pacman-get b/pacman2pacman-get index fbc1476..afe0021 100644 --- a/pacman2pacman-get +++ b/pacman2pacman-get @@ -287,9 +287,10 @@ then do if (( err_count > 100 )) then - echo $"error moving \"${pkg_cache_location}/${url##*/}\". removing torrent from transmission" + echo $"error moving \"${pkg_cache_location}/${url##*/}\". removing torrent from transmission and trying by HTTP." transmission-remote -t "${id}" -r > /dev/null - exittidy ; exit 1 + gotourbaby=0 + break fi sleep 0.1 |