logo       
Google Custom Search
    AddThis Social Bookmark Button

cvs: pearweb /cron update-website.php: msg#00247

Subject: cvs: pearweb /cron update-website.php
dufuz           Mon Jun 25 20:04:50 2007 UTC

  Modified files:              
    /pearweb/cron       update-website.php 
  Log:
  add pearweb_gopear to the update list
  
http://cvs.php.net/viewvc.cgi/pearweb/cron/update-website.php?r1=1.4&r2=1.5&diff_format=u
Index: pearweb/cron/update-website.php
diff -u pearweb/cron/update-website.php:1.4 pearweb/cron/update-website.php:1.5
--- pearweb/cron/update-website.php:1.4 Sat Jun  9 22:16:06 2007
+++ pearweb/cron/update-website.php     Mon Jun 25 20:04:50 2007
@@ -69,4 +69,19 @@
             }
         }
     }
+}
+$pearweb_gopear = &PEAR_PackageUpdate::factory('Cli', 'pearweb_gopear', 
'pear.php.net');
+if ($pearweb_gopear) {
+    $pearweb_gopear->setMinimumState(PEAR_PACKAGEUPDATE_STATE_STABLE);
+    if ($pearweb_gopear->checkUpdate()) {
+        if (!$pearweb_gopear->update()) {
+            if ($pearweb_gopear->hasErrors()) {
+                $errors = PEAR_ErrorStack::staticGetErrors();
+                echo "errors\n";
+                foreach ($errors['PEAR_PackageUpdate_Cli'] as $err) {
+                    echo $err['message'] . "\n";
+                }
+            }
+        }
+    }
 }
\ No newline at end of file



<Prev in Thread] Current Thread [Next in Thread>