aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Downloads.php
diff options
context:
space:
mode:
authorManuel Hiebel <leuhmanu@mageia.org>2013-05-19 19:42:35 +0000
committerManuel Hiebel <leuhmanu@mageia.org>2013-05-19 19:42:35 +0000
commit9758607cd27378aecb34c26486af08f997562ed4 (patch)
treec1070d2c45b3c1660b832e55131a4c264eb67c5b /lib/Downloads.php
parent4ef1498552bfc82b5d65ba894bbad6f426764258 (diff)
downloadwww-9758607cd27378aecb34c26486af08f997562ed4.tar
www-9758607cd27378aecb34c26486af08f997562ed4.tar.gz
www-9758607cd27378aecb34c26486af08f997562ed4.tar.bz2
www-9758607cd27378aecb34c26486af08f997562ed4.tar.xz
www-9758607cd27378aecb34c26486af08f997562ed4.zip
updates cached list, add back http mirror and modifing script (which works better but slowly)
Diffstat (limited to 'lib/Downloads.php')
-rw-r--r--lib/Downloads.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Downloads.php b/lib/Downloads.php
index 534cd5e0f..a44404ea0 100644
--- a/lib/Downloads.php
+++ b/lib/Downloads.php
@@ -125,7 +125,10 @@ class Downloads
);
$torrent =$item['url'].'/iso/3/torrents/Mageia-3-LiveDVD-KDE4-x86_64-DVD.torrent' ;
- if (file_exists($torrent)){
+ if (false === file_get_contents($torrent)){
+ echo "down $torrent \n";
+ } else {
+ echo "Up $torrent \n";
$mirrors[$m['country']][] = $item;
$mirrors['_C:' . $m['continent']][] = $item;