[Dehs-devel] r114 - trunk

atomo64-guest at alioth.debian.org atomo64-guest at alioth.debian.org
Wed Feb 27 22:26:07 UTC 2008


Author: atomo64-guest
Date: 2008-02-27 22:26:06 +0000 (Wed, 27 Feb 2008)
New Revision: 114

Modified:
   trunk/dehs_pg.php
Log:
Make sure that 'lastcheck is null' only matches those packages WITH watch files, on update_new


Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php	2008-02-26 23:15:18 UTC (rev 113)
+++ trunk/dehs_pg.php	2008-02-27 22:26:06 UTC (rev 114)
@@ -968,7 +968,7 @@
     global $dbconn;
     check_db();
     $db = pg_pconnect($dbconn);
-    $sql="SELECT name FROM pkgs WHERE (md5_diff!=md5_atsource or md5_diff is null) or lastcheck is null";
+    $sql="SELECT name FROM pkgs WHERE (md5_diff!=md5_atsource or md5_diff is null) or (lastcheck is null and watch is not null)";
     $rsql=pg_exec($db, $sql);
     $res_array=pg_fetch_all($rsql);
     pg_close($db);




More information about the Dehs-devel mailing list