svn: /pear/pear-core/trunk/PEAR/Command/ Package.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Wed, 05 Aug 2009 12:26:15 +0000 |
| Subject: | svn: /pear/pear-core/trunk/PEAR/Command/ Package.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-56911@lists.php.net to get a copy of this message | ||
dufuz Wed, 05 Aug 2009 12:26:15 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=286833
Log:
Attempt to create the tag dir if it doesn't already exist.
Changed paths:
U pear/pear-core/trunk/PEAR/Command/Package.php
Modified: pear/pear-core/trunk/PEAR/Command/Package.php
===================================================================
--- pear/pear-core/trunk/PEAR/Command/Package.php 2009-08-05 12:16:45 UTC (rev 286832)
+++ pear/pear-core/trunk/PEAR/Command/Package.php 2009-08-05 12:26:15 UTC (rev 286833)
@@ -499,6 +499,19 @@
if (in_array($svntag . '/', explode("\n", $out))) {
$this->ui->outputData($this->output, $command);
return $this->raiseError('SVN tag ' . $svntag . ' for ' .
$package . ' already exists.');
+ } else {
+ $makeCommand = 'svn mkdir ' . $releaseTag;
+ $this->output .= "+ $makeCommand\n";
+ if (empty($options['dry-run'])) {
+ // We ned to create the tag dir.
+ $fp = popen($makeCommand, "r");
+ $out = '';
+ while ($line = fgets($fp, 1024)) {
+ $out .= rtrim($line)."\n";
+ }
+ pclose($fp);
+ $this->output .= "$out\n";
+ }
}
$command .= ' -m "Tagging the ' . $version . ' release" \\'
. "\n";