[CS-Project-svn_notify] SF.net SVN: cs-project: [817] trunk/1.2/lib/upgradeClass.php
Brought to you by:
crazedsanity
From: <cra...@us...> - 2008-02-09 05:33:33
|
Revision: 817 http://cs-project.svn.sourceforge.net/cs-project/?rev=817&view=rev Author: crazedsanity Date: 2008-02-08 21:33:30 -0800 (Fri, 08 Feb 2008) Log Message: ----------- Upgrade locks config again, plus more debug printing. Modified Paths: -------------- trunk/1.2/lib/upgradeClass.php Modified: trunk/1.2/lib/upgradeClass.php =================================================================== --- trunk/1.2/lib/upgradeClass.php 2008-02-09 04:23:14 UTC (rev 816) +++ trunk/1.2/lib/upgradeClass.php 2008-02-09 05:33:30 UTC (rev 817) @@ -190,7 +190,7 @@ throw new exception(__METHOD__ .": upgrade already in progress...????"); } else { - $lockConfig = $this->upgrade_in_progress(); + $lockConfig = $this->upgrade_in_progress(TRUE); $this->fsObj->cd("/"); //TODO: not only should the "create_file()" method be run, but also do a sanity check by calling lock_file_exists(). @@ -445,6 +445,7 @@ //version-only upgrade. $this->update_database_version($this->versionFileVersion); $this->newVersion = $this->versionFileVersion; + $this->gfObj->debug_print(__METHOD__ .": doing version-only upgrade..."); } else { $scriptIndex = $versionIndex; @@ -466,6 +467,7 @@ throw new exception(__METHOD__ .": target version not specified, unable to proceed with upgrade for ". $versionIndex); } } + $this->gfObj->debug_print(__METHOD__ .": done... "); }//end do_single_upgrade() //========================================================================= @@ -560,6 +562,7 @@ //we've got the filename, see if it exists. $fileName = UPGRADE_DIR .'/'. $myConfigFile; if(file_exists($fileName)) { + $this->gfObj->debug_print(__METHOD__ .": file exists... "); $createClassName = $upgradeData['CLASS_NAME']; $classUpgradeMethod = $upgradeData['CALL_METHOD']; require_once($fileName); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |