aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2016-07-17 23:22:33 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2016-07-17 23:22:43 -0700
commit79e8bf3316fe2977a52e6bb8ee9de6d2aaa1583c (patch)
tree0d34b59f3f5e747035708cfd4e2bf79527c969d5
parentRework news item page (diff)
downloadwww-79e8bf3316fe2977a52e6bb8ee9de6d2aaa1583c.tar.gz
www-79e8bf3316fe2977a52e6bb8ee9de6d2aaa1583c.tar.bz2
www-79e8bf3316fe2977a52e6bb8ee9de6d2aaa1583c.zip
update-planet: wget -T timeout does not fire in some cases.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
-rwxr-xr-xbin/update-planet.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/update-planet.sh b/bin/update-planet.sh
index e15571d..5a410cb 100755
--- a/bin/update-planet.sh
+++ b/bin/update-planet.sh
@@ -1,6 +1,6 @@
#!/bin/bash
echo -n 'Updating Planet information...'
-wget -T 60 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 2>/dev/null
+timeout 120 wget -T 60 'http://planet.gentoo.org/rss20.xml' -O _data/planet.xml.tmp 2>/dev/null
[ $? -eq 0 ] && mv _data/planet.xml.tmp _data/planet.xml
echo 'done.'