logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pearweb /cron/mirror pear-grabstats.php: msg#00264

Subject: cvs: pearweb /cron/mirror pear-grabstats.php
cellog          Wed May 30 20:30:29 2007 UTC

  Modified files:              
    /pearweb/cron/mirror        pear-grabstats.php 
  Log:
  fix $tag == 'a' and add saving of last sync
  
http://cvs.php.net/viewvc.cgi/pearweb/cron/mirror/pear-grabstats.php?r1=1.1&r2=1.2&diff_format=u
Index: pearweb/cron/mirror/pear-grabstats.php
diff -u pearweb/cron/mirror/pear-grabstats.php:1.1 
pearweb/cron/mirror/pear-grabstats.php:1.2
--- pearweb/cron/mirror/pear-grabstats.php:1.1  Wed May 30 20:24:15 2007
+++ pearweb/cron/mirror/pear-grabstats.php      Wed May 30 20:30:29 2007
@@ -54,7 +54,7 @@
                 $dbh->query($sql, array($id));
             }
             $sql = '';
-        } elseif ($tag = 'a') {
+        } elseif ($tag == 'a') {
             if (!$package) {
                 continue;
             }
@@ -71,6 +71,9 @@
                     $count . ' WHERE release_id=? AND yearmonth=?';
                 $dbh->query($sql, array($id, $year . '-' . $mon . '-01'));
             }
+        } elseif ($tag == 'l') {
+            $dbh->query('UPDATE pear_mirrors set last_sync=? WHERE 
mirrorserver=?',
+                array((string)$value, $mirror['mirrorserver']));
         }
     }
 }
\ No newline at end of file

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>