blob: a6ed2bc333d3d4acdb2acd80ee2e2fba0c6894f3 [file] [log] [blame]
david_williamsfd220c82008-01-07 07:59:37 +00001<?php
2// echo "Debug: yes, counted parts was 3<br />";
3$buildTypePart = $entryParts[0];
4$buckets[$buildBranch][$buildTypePart][] = $aDropDirectoryName;
5// if ($debugScript) {
6//echo "Debug: Started processDropDirectory with following <br />";
7//echo " buildBranch: $buildBranch <br />";
8//echo " buildTypePart: $buildTypePart <br />";
9//echo " anEntry: $anEntry <br />";
10// }
11
12$timePart = $entryParts[2];
13$year = substr($timePart, 0, 4);
14$month = substr($timePart, 4, 2);
15$day = substr($timePart, 6, 2);
16$hour = substr($timePart,8,2);
17$minute = substr($timePart,10,2);
18
19$newTimePart = "$year-$month-$day $hour:$minute UTC";
20
21$timeStamp = strtotime($newTimePart);
22
23$timeStamps[$buildBranch."/".$artifactTimeStamp.$anEntry] = gmdate("D, j M Y -- H:i \(\U\T\C\)", $timeStamp);
24//echo "Debug: anEntry indexing timeStamps: ", $buildBranch."/".$artifactTimeStamp.$anEntry, "<br />";
25// debug
26// echo "<br />buildBranch: $buildBranch <br />";
27// echo "<br />parts[0]: -$buildTypePart- <br />";
28// echo "latestTimeStamp[buildBranch]:";
29// echo $latestTimeStamp[$buildBranch];
30// echo "latestTimeStamp:";
31// echo $latestTimeStamp;
32
33if ((sizeof($latestTimeStamp[$buildBranch]) > 0) &&
34(isset($latestTimeStamp[$buildBranch][$buildTypePart])))
35{
36 if ($timeStamp > $latestTimeStamp[$buildBranch][$buildTypePart])
37 {
38 $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
39 $latestFile[$buildBranch][$buildTypePart] = $aDropDirectoryName;
40 }
41}
42else
43{
44 $latestTimeStamp[$buildBranch][$buildTypePart] = $timeStamp;
45 $latestFile[$buildBranch][$buildTypePart] = $aDropDirectoryName;
46
47}
48?>