From: Gunnar Wrobel
Date: Mon, 15 Nov 2010 17:54:36 +0000 (+0100) Subject: Allow setting the PEAR environment when preparing a package for distribution. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=aaba3150ccab66df309ea577946e3c22972651b6;p=horde.git Allow setting the PEAR environment when preparing a package for distribution. --- diff --git a/components/lib/Components/Runner/Distribute.php b/components/lib/Components/Runner/Distribute.php index 881835c9c..a0a2388ec 100644 --- a/components/lib/Components/Runner/Distribute.php +++ b/components/lib/Components/Runner/Distribute.php @@ -98,9 +98,17 @@ class Components_Runner_Distribute ); } - $package = $this->_factory->createPackageForDefaultLocation( - $arguments[0] . DIRECTORY_SEPARATOR . 'package.xml' - ); + if (!isset($options['pearrc'])) { + $package = $this->_factory->createPackageForDefaultLocation( + $arguments[0] . DIRECTORY_SEPARATOR . 'package.xml' + ); + } else { + $package = $this->_factory->createPackageForInstallLocation( + $arguments[0] . DIRECTORY_SEPARATOR . 'package.xml', + $options['pearrc'] + ); + } + $version = $package->getVersion() . 'dev' . strftime('%Y%m%d%H%M'); $package->generateSnapshot($version, dirname($options['distribute']));