Alexander Nicolaysen Sørnes : cron: Don' t examine deleted versions in orphan cleanup

Alexander Nicolaysen Sørnes asornes at winehq.org
Sun Jul 12 16:35:46 CDT 2009


Module: appdb
Branch: master
Commit: 658056bd91693bfa87fdd0735b8034d3ab095c2f
URL:    http://source.winehq.org/git/appdb.git/?a=commit;h=658056bd91693bfa87fdd0735b8034d3ab095c2f

Author: Alexander Nicolaysen Sørnes <alex at thehandofagony.com>
Date:   Sun Jul 12 23:35:13 2009 +0200

cron: Don't examine deleted versions in orphan cleanup

---

 cron/cleanup.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cron/cleanup.php b/cron/cleanup.php
index 43a3e89..299c0b0 100644
--- a/cron/cleanup.php
+++ b/cron/cleanup.php
@@ -167,7 +167,7 @@ function orphanVersionCheck()
 {
     global $sEmailSubject;
 
-    $sQuery = "select versionId, versionName from appVersion where appId = 0";
+    $sQuery = "select versionId, versionName from appVersion where appId = 0 and state != 'deleted'";
     $hResult = query_appdb($sQuery);
     $found_orphans = false;
 




More information about the wine-cvs mailing list