Alexander Nicolaysen Sørnes : maintainer notifications: Only check data for accepted versions
Chris Morgan
cmorgan at winehq.org
Thu Jan 17 09:50:16 CST 2008
Module: appdb
Branch: master
Commit: 0f41ee390c12b3188c14cfd8f68c312da6ed1010
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=0f41ee390c12b3188c14cfd8f68c312da6ed1010
Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date: Thu Jan 17 16:08:32 2008 +0100
maintainer notifications: Only check data for accepted versions
---
include/maintainer.php | 2 +-
unit_test/test_maintainer_notify.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/maintainer.php b/include/maintainer.php
index d0dc50c..ec151f5 100644
--- a/include/maintainer.php
+++ b/include/maintainer.php
@@ -73,7 +73,7 @@ class queuedEntries
if($oVersion->objectGetState() == 'queued')
{
$this->aVersions[] = $oVersion->objectGetId();
- } else // version isn't queued
+ } else if($oVersion->objectGetState() == 'accepted') // version isn't queued
{
// add the unqueued version to the list of versions to check for queued data
$aVersionsToCheck[] = $oVersion->iVersionId;
diff --git a/unit_test/test_maintainer_notify.php b/unit_test/test_maintainer_notify.php
index 0f46bf8..d7feabc 100644
--- a/unit_test/test_maintainer_notify.php
+++ b/unit_test/test_maintainer_notify.php
@@ -121,8 +121,8 @@ class notifyContainer
// and will skip over queued entries that depend on this version
if(!$bTestAsMaintainer)
{
- $sVersionUnqueue = "update appVersion set queued='?' where versionId = '?'";
- $hResult = query_parameters($sVersionUnqueue, 'false', $this->iVersionId);
+ $sVersionUnqueue = "update appVersion set state='?' where versionId = '?'";
+ $hResult = query_parameters($sVersionUnqueue, 'accepted', $this->iVersionId);
}
// debug printing
More information about the wine-cvs
mailing list