summaryrefslogtreecommitdiffstats
path: root/pts-core/functions
diff options
context:
space:
mode:
authorMichael Larabel <michael@phx-laptop.(none)>2008-11-30 13:44:32 -0500
committerMichael Larabel <michael@phx-laptop.(none)>2008-11-30 13:44:32 -0500
commit811bed284762e065b4b5dd84b5a4e4ff28a59bb5 (patch)
tree9a5e0c19fb73421a51e4a0914dc83b754297b7d9 /pts-core/functions
parenta01cc5dcda9c5559672ba0d86ced50721c63559c (diff)
downloadphoronix-test-suite-upstream-811bed284762e065b4b5dd84b5a4e4ff28a59bb5.tar.gz
phoronix-test-suite-upstream-811bed284762e065b4b5dd84b5a4e4ff28a59bb5.tar.xz
phoronix-test-suite-upstream-811bed284762e065b4b5dd84b5a4e4ff28a59bb5.zip
pts-core: Fix recent regression in pts_download_test_files() that caused
only the first file to be downloaded
Diffstat (limited to 'pts-core/functions')
-rw-r--r--pts-core/functions/pts-functions-install.php7
1 files changed, 3 insertions, 4 deletions
diff --git a/pts-core/functions/pts-functions-install.php b/pts-core/functions/pts-functions-install.php
index fc2b3e9..84bf05f 100644
--- a/pts-core/functions/pts-functions-install.php
+++ b/pts-core/functions/pts-functions-install.php
@@ -136,13 +136,13 @@ function pts_download_test_files($identifier)
else
{
$used_cache = false;
- for($i = 0; $i < count($cache_directories) && $used_cache == false; $i++)
+ for($j = 0; $j < count($cache_directories) && $used_cache == false; $j++)
{
- if(pts_validate_md5_download_file($cache_directories[$i] . $package_filename, $package_md5))
+ if(pts_validate_md5_download_file($cache_directories[$j] . $package_filename, $package_md5))
{
echo "Copying Cached File: " . $package_filename . "\n";
- if(copy($cache_directories[$i] . $package_filename, $download_destination))
+ if(copy($cache_directories[$j] . $package_filename, $download_destination))
{
$urls = array();
$used_cache = true;
@@ -238,7 +238,6 @@ function pts_download_test_files($identifier)
{
pts_move_file($package_filename . ".temp", $package_filename, $download_location);
}
-
$file_downloaded = true;
$fail_count = 0;
}