aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-01-15 09:08:54 +0000
committerPascal Terjan <pterjan@mageia.org>2020-01-15 09:09:10 +0000
commitfa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d (patch)
tree3e11527a1d387de8302e6cbfbbf14701f7bed3a1
parentc2c4b32c628bc5b936e8cce0464efea121fe5c8d (diff)
downloadpuppet-fa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d.tar
puppet-fa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d.tar.gz
puppet-fa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d.tar.bz2
puppet-fa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d.tar.xz
puppet-fa6e5ad4f6e6ff3ddbe73f1b97c10b67ae04165d.zip
Catch IOError in check_mirrors_status
-rwxr-xr-xmodules/mga-mirrors/files/check_mirrors_status2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/mga-mirrors/files/check_mirrors_status b/modules/mga-mirrors/files/check_mirrors_status
index 09f7a2b4..180c2f0b 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -13,7 +13,7 @@ def get_dates(base, archs_per_distro, optional=true)
archs.each{|a|
begin
r[d][a] = get_date(base, d, a)
- rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED => e
+ rescue Net::OpenTimeout, Timeout::Error, ArgumentError, NoMethodError, Errno::EHOSTUNREACH, Errno::ECONNREFUSED, IOError => e
if !optional then
STDERR.puts "Failed to fetch #{version_url(url, distrib, arch)}"
raise