[Dehs-devel] r155 - trunk
atomo64-guest at alioth.debian.org
atomo64-guest at alioth.debian.org
Fri Jul 18 16:10:02 UTC 2008
Author: atomo64-guest
Date: 2008-07-18 16:10:01 +0000 (Fri, 18 Jul 2008)
New Revision: 155
Modified:
trunk/dehs_pg.php
Log:
Improve the uptodate detection on dehsqa_db for its usage in DDPO
Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php 2008-07-10 04:31:49 UTC (rev 154)
+++ trunk/dehs_pg.php 2008-07-18 16:10:01 UTC (rev 155)
@@ -980,13 +980,14 @@
if ($res_array['wwiz_type']=="watch") $wwiz=$res_array['wwiz_version'];
else $wwiz=$res_array[wwiz_type];
- $updated = $res_array['updated']? 'yes' : 'no';
+ // the updated flag is set to true even when up_version could not be determined
+ $updated = ($res_array['updated'] && ($res_array[up_version] || $res_array[wwiz_version]))? 'yes' : 'no';
$xml="<data><id>$res_array[id]</id>" .
"<up_version>$version</up_version>" .
"<dversion>$res_array[version]</dversion>" .
"<dversionmangled>$res_array[dversionmangled]</dversionmangled>" .
- "<updated>$updated</updated>" .
+ "<uptodate>$updated</uptodate>" .
"<wwiz>$wwiz</wwiz>" .
"</data>";
$value=addslashes($xml);
More information about the Dehs-devel
mailing list