appdb/include version_queue.php
WineHQ
wineowner at wine.codeweavers.com
Wed May 30 21:33:36 CDT 2007
ChangeSet ID: 31149
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner at winehq.org 2007/05/30 21:33:36
Modified files:
include : version_queue.php
Log message:
Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Fix un-queueing of download urls
Patch: http://cvs.winehq.org/patch.py?id=31149
Old revision New revision Changes Path
1.10 1.11 +8 -1 appdb/include/version_queue.php
Index: appdb/include/version_queue.php
diff -u -p appdb/include/version_queue.php:1.10 appdb/include/version_queue.php:1.11
--- appdb/include/version_queue.php:1.10 31 May 2007 2:33:36 -0000
+++ appdb/include/version_queue.php 31 May 2007 2:33:36 -0000
@@ -10,15 +10,21 @@ class version_queue
{
$this->oVersion = new version($iVersionId);
$iTestingId = null;
+ $iDownloadUrlId = null;
if($iVersionId)
{
$iTestingId = testData::getNewestTestIdFromVersionId($iVersionId,
$this->oVersion->sQueued);
+ if($hResult = appData::getData($iVersionId, "downloadurl", TRUE, TRUE))
+ {
+ if($oRow = mysql_fetch_object($hResult))
+ $iDownloadUrlId = $oRow->id;
+ }
}
$this->oTestDataQueue = new testData_queue($iTestingId);
- $this->oDownloadUrl = new downloadurl();
+ $this->oDownloadUrl = new downloadurl($iDownloadUrlId);
}
function create()
@@ -67,6 +73,7 @@ class version_queue
{
$this->oVersion->unQueue();
$this->oTestDataQueue->unQueue();
+ $this->oDownloadUrl->unQueue();
}
function outputEditor()
More information about the wine-cvs
mailing list