appdb/include version_queue.php
WineHQ
wineowner at wine.codeweavers.com
Mon Jun 18 19:28:49 CDT 2007
ChangeSet ID: 31223
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/06/18 19:28:49
Modified files:
include : version_queue.php
Log message:
Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Delete all objects in version_queue::delete()
Patch: http://cvs.winehq.org/patch.py?id=31223
Old revision New revision Changes Path
1.15 1.16 +12 -1 appdb/include/version_queue.php
Index: appdb/include/version_queue.php
diff -u -p appdb/include/version_queue.php:1.15 appdb/include/version_queue.php:1.16
--- appdb/include/version_queue.php:1.15 19 Jun 2007 0:28:49 -0000
+++ appdb/include/version_queue.php 19 Jun 2007 0:28:49 -0000
@@ -76,7 +76,18 @@ class version_queue
function delete()
{
- return $this->oVersion->delete();
+ $bSuccess = TRUE;
+
+ if(!$this->oVersion->delete())
+ $bSuccess = FALSE;
+
+ if(!$this->oTestDataQueue->delete())
+ $bSuccess = FALSE;
+
+ if($this->oDownloadUrl->iId && !$this->oDownloadUrl->delete())
+ $bSuccess = FALSE;
+
+ return $bSuccess;
}
function unQueue()
More information about the wine-cvs
mailing list