summaryrefslogtreecommitdiff
path: root/BitInstaller.php
diff options
context:
space:
mode:
authorMax Kremmel <xing@synapse.plus.com>2008-10-24 22:08:13 +0000
committerMax Kremmel <xing@synapse.plus.com>2008-10-24 22:08:13 +0000
commitd7f523c2d6f6c6b38abe87bb475494b7db3b43df (patch)
treece17e01b511c809e706e0053010f38145ba5abdc /BitInstaller.php
parentb0c755efbcc498a83ab599d5e5e1b52213876f0e (diff)
downloadinstall-d7f523c2d6f6c6b38abe87bb475494b7db3b43df.tar.gz
install-d7f523c2d6f6c6b38abe87bb475494b7db3b43df.tar.bz2
install-d7f523c2d6f6c6b38abe87bb475494b7db3b43df.zip
move the liberty meta table upgrade hack to the new package version upgrades and give liberty version 2.0.0. Please note that running this upgrade on cvs installs won't work. fix in the works.
Diffstat (limited to 'BitInstaller.php')
-rw-r--r--BitInstaller.php22
1 files changed, 13 insertions, 9 deletions
diff --git a/BitInstaller.php b/BitInstaller.php
index 3105053..b138a97 100644
--- a/BitInstaller.php
+++ b/BitInstaller.php
@@ -1,6 +1,6 @@
<?php
/**
- * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.33 2008/10/24 20:22:18 squareing Exp $
+ * @version $Header: /cvsroot/bitweaver/_bit_install/BitInstaller.php,v 1.34 2008/10/24 22:08:13 squareing Exp $
* @package install
*/
@@ -64,29 +64,33 @@ class BitInstaller extends BitSystem {
/**
* verifyPackageUpgrade
*
- * @param array $pParams
- * @param array $pCheckDesc
+ * @param array $pParams Hash of information about upgrade
+ * @param string $pParams[package] Name of package that is upgrading
+ * @param string $pParams[version] Version of this upgrade
+ * @param string $pParams[description] Description of what the upgrade does
+ * @param string $pParams[post_upgrade] Textual note of stuff that needs to be observed after the upgrade
* @access public
* @return TRUE on success, FALSE on failure - mErrors will contain reason for failure
*/
- function verifyPackageUpgrade( &$pParams, $pCheckDesc = TRUE ) {
+ function verifyPackageUpgrade( &$pParams ) {
if( empty( $pParams['package'] )) {
$this->mErrors['package'] = "Please provide a valid package name.";
}
if( empty( $pParams['version'] ) || !$this->validateVersion( $pParams['version'] )) {
- $this->mErrors['package'] = "Please provide a valid version number.";
+ $this->mErrors['version'] = "Please provide a valid version number.";
} elseif( empty( $this->mErrors ) && !empty( $this->mPackageUpgrades[$pParams['package']][$pParams['version']] )) {
- $this->mErrors['package'] = "Please make sure you use a unique version number to register your new database changes.";
+ $this->mErrors['version'] = "Please make sure you use a unique version number to register your new database changes.";
}
- if( $pCheckDesc && empty( $pParams['description'] )) {
- $this->mErrors['package'] = "Please add a brief description of what this upgrade is all about.";
+ if( empty( $pParams['description'] )) {
+ $this->mErrors['description'] = "Please add a brief description of what this upgrade is all about.";
}
// since this should only show up when devs are working, we'll simply display the output:
if( !empty( $this->mErrors )) {
- var_dump( $this->mErrors );
+ vd( $this->mErrors );
+ bt();
}
return( count( $this->mErrors ) == 0 );