aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Terjan <pterjan@mageia.org>2020-09-23 18:53:10 +0000
committerPascal Terjan <pterjan@mageia.org>2020-09-23 18:53:10 +0000
commit2bab263d8b7e912562f27738e059baa0c5fc2fe7 (patch)
tree078e0b7f87b0ba9cc77f10efebc78cd75c36963a
parentf72fae148b6a96cc2c40a5357435496784953cec (diff)
downloadpuppet-2bab263d8b7e912562f27738e059baa0c5fc2fe7.tar
puppet-2bab263d8b7e912562f27738e059baa0c5fc2fe7.tar.gz
puppet-2bab263d8b7e912562f27738e059baa0c5fc2fe7.tar.bz2
puppet-2bab263d8b7e912562f27738e059baa0c5fc2fe7.tar.xz
puppet-2bab263d8b7e912562f27738e059baa0c5fc2fe7.zip
Small safety addition
-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 43df23b4..208c5ed3 100755
--- a/modules/mga-mirrors/files/check_mirrors_status
+++ b/modules/mga-mirrors/files/check_mirrors_status
@@ -35,7 +35,7 @@ def get_mirrors
url = nil
fetch_url("http://mirrors.mageia.org/").each_line{|l|
if l =~ /rsync.mageia.org/ then
- mirrors.prepend url
+ mirrors.prepend url unless url.nil?
url = nil
next
end