[Dehs-devel] r106 - trunk
atomo64-guest at alioth.debian.org
atomo64-guest at alioth.debian.org
Wed Feb 6 04:07:10 UTC 2008
Author: atomo64-guest
Date: 2008-02-06 04:07:10 +0000 (Wed, 06 Feb 2008)
New Revision: 106
Modified:
trunk/dehs_pg.php
Log:
Added updated information on the BDB
Make sure to exclude #PACKAGE#@packages.qa.d.o from the notifications
Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php 2008-02-05 22:23:42 UTC (rev 105)
+++ trunk/dehs_pg.php 2008-02-06 04:07:10 UTC (rev 106)
@@ -894,7 +894,7 @@
foreach ($dists as $dist) {
$id=dbqa_conn($dir1 . "dehs_qa_" . $dist . ".db",'n');
$db = pg_pconnect($dbconn) or die_status ("Db error");
- $sql="SELECT name, id, up_version, wwiz_version, watch, wwiz_type, watch_warn, version, dversionmangled FROM pkgs WHERE dist='$dist'";
+ $sql="SELECT name, id, up_version, wwiz_version, watch, wwiz_type, watch_warn, version, dversionmangled, updated FROM pkgs WHERE dist='$dist'";
$rsql=pg_exec($db, $sql);
while($res_array=pg_fetch_array($rsql)) {
@@ -905,10 +905,13 @@
if ($res_array['wwiz_type']=="watch") $wwiz=$res_array['wwiz_version'];
else $wwiz=$res_array[wwiz_type];
+ $updated = $res_array['updated']? '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>" .
"<wwiz>$wwiz</wwiz>" .
"</data>";
$value=addslashes($xml);
@@ -1077,7 +1080,7 @@
$extraHeaders[] = 'X-DEHS-UVERSION: ' . $newVersion;
$extraHeaders[] = 'BCC: ' . $bcc;
- if (!mail($to, $subject, $message, implode("\r\n", $extraHeaders)))
+ if (!mail($to, $subject, $message, implode("\r\n", $extraHeaders), escapeshellarg($to)))
return false;
events::_recordEvent(__FUNCTION__, $sourcePackage, $distribution, $newVersion);
More information about the Dehs-devel
mailing list