aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2017-02-18 16:46:37 -0800
committerRobin H. Johnson <robbat2@gentoo.org>2017-02-18 16:46:37 -0800
commitcbf09605f5b37e9d7aed3e6546a748bf63ed7688 (patch)
tree2e29348370401ac638c804fa5b5b0d3506547784 /bin
parentAdd news announcement on FOSDEM Gentoo dev talks. (diff)
downloadwww-cbf09605f5b37e9d7aed3e6546a748bf63ed7688.tar.gz
www-cbf09605f5b37e9d7aed3e6546a748bf63ed7688.tar.bz2
www-cbf09605f5b37e9d7aed3e6546a748bf63ed7688.zip
bin/update-packages: add more timeout, as still seems to sometimes hang.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/update-packages.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/update-packages.sh b/bin/update-packages.sh
index b2577bd..8a267a2 100755
--- a/bin/update-packages.sh
+++ b/bin/update-packages.sh
@@ -1,6 +1,6 @@
#!/bin/bash
echo -n 'Updating Packages information...'
-wget -T 60 'https://packages.gentoo.org/packages/added.atom' -O _data/packages.xml.tmp 2>/dev/null
+timeout 60 wget -T 60 'https://packages.gentoo.org/packages/added.atom' -O _data/packages.xml.tmp 2>/dev/null
[ $? -eq 0 ] && mv _data/packages.xml.tmp _data/packages.xml
echo 'done.'