diff options
author | filip <filip.komar@gmail.com> | 2015-05-03 15:10:44 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2015-05-03 15:10:44 +0200 |
commit | 31d7e9ff470756d5ebbf70905391964884b044fc (patch) | |
tree | 6fe7f91f90ebc685ffb99a7e24ae614434a7b89d /tools | |
parent | b9ac889d7b4d1f5d714f20393df72be9201edeb3 (diff) | |
download | www-31d7e9ff470756d5ebbf70905391964884b044fc.tar www-31d7e9ff470756d5ebbf70905391964884b044fc.tar.gz www-31d7e9ff470756d5ebbf70905391964884b044fc.tar.bz2 www-31d7e9ff470756d5ebbf70905391964884b044fc.tar.xz www-31d7e9ff470756d5ebbf70905391964884b044fc.zip |
simplification as there is no need to update both mirrors lists (ISO, doc) separately
Diffstat (limited to 'tools')
-rw-r--r-- | tools/update-mirrors-list.php | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tools/update-mirrors-list.php b/tools/update-mirrors-list.php index ee17f9b2c..0ee8601a2 100644 --- a/tools/update-mirrors-list.php +++ b/tools/update-mirrors-list.php @@ -1,21 +1,17 @@ <?php /** - * Run this to update lib/cached.list.php mirrors list from mirrors.mageia.org/api + * Run this to update lib/cached.list.php and cached.list_doc.php mirrors list from mirrors.mageia.org/api * - * Usage for regeneration of cached.list.php for ISO and torrent files: + * Usage from the git clone root location: * php ./tools/update-mirrors-list.php * - * Usage for regeneration of cached.list_doc.php for documentation files: - * php ./tools/update-mirrors-list.php true - * */ require __DIR__ . '/../lib/Downloads.php'; -$documentation = isset($argv[1]) ? $argv[1] : false; -if($documentation) { - echo 'Rebuilding' . __DIR__ . '/cached.list_doc.php with date.txt as a test file.' . PHP_EOL; -} else { - echo 'Rebuilding' . __DIR__ . '/cached.list.php with one torrent as a test file.' . PHP_EOL; -} -Downloads::get_all_mirrors(false, $documentation); +echo 'Rebuilding ./lib/cached.list.php with one torrent file as a test file.' . PHP_EOL; +Downloads::get_all_mirrors(false); +echo PHP_EOL . PHP_EOL; + +echo 'Rebuilding ./lib/cached.list_doc.php with the date.txt as a test file.' . PHP_EOL; +Downloads::get_all_mirrors(false, true); |