[Dehs-devel] r98 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Wed Jan 23 22:21:46 UTC 2008


Author: atomo64-guest
Date: 2008-01-23 22:21:46 +0000 (Wed, 23 Jan 2008)
New Revision: 98

Modified:
   trunk/dehs.config.inc
   trunk/dehs_pg.php
Log:
Enabling notifications on all kind of updates except for update_all 

Modified: trunk/dehs.config.inc
===================================================================
--- trunk/dehs.config.inc	2008-01-23 21:58:07 UTC (rev 97)
+++ trunk/dehs.config.inc	2008-01-23 22:21:46 UTC (rev 98)
@@ -23,7 +23,7 @@
 /*1: watch url, 2: $space, 3: name, 4: file ext, 5: extra options*/
 $watchFormat = 'version=3' . "\n" . '%5$s' . "\n" . '%1$s%2$s%3$s-?_?([\d+\.]+|\d+)\.%4$s debian uupdate';
 $fetchUpstreamChanges = false;
-$sendNotifications = false;
+$sendNotifications = true;
 $notificationsMailFrom = 'Debian External Health System <dehs-devel at lists.alioth.debian.org>';
 $_SERVER['SERVER_NAME']=shell_exec("hostname -f 2>&1");
 ?>
\ No newline at end of file

Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2008-01-23 21:58:07 UTC (rev 97)
+++ trunk/dehs_pg.php	2008-01-23 22:21:46 UTC (rev 98)
@@ -900,9 +900,12 @@
     }
 }
 function update_all() {
-    global $email;
+    global $email, $sendNotifications;
     $intime=gmdate('D, d M Y H:i:s \C\E\S\T',time()+3600*2);
     echo __FUNCTION__ . ' started the ' . $intime . "\n";
+    // atm disable when performing an archive-wide check because
+    //  I'm CC'ing myself (atomo64) on each message to review them
+    $sendNotifications = false;
     db_add();
     dl_popcon();
     db_popcon();
@@ -1018,7 +1021,7 @@
         $eventsId = events::_searchEvent(__FUNCTION__, $sourcePackage, $newVersion);
 
         if (!empty($eventsId)) {
-            echo "Skipping ".__FUNCTION__." event for v$newVersion of $sourcePackage; already sent";
+            echo "\nSkipping ".__FUNCTION__." event for v$newVersion of $sourcePackage; already sent";
             return null;
         }
 




More information about the Dehs-devel mailing list