svn: /pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/ PEAR2SVN.php
[email protected] (Brett Bieber)
| Newsgroups | php.pear.cvs,php.pear.core |
|---|---|
| Message-ID | <[email protected]> |
saltybeagle Sun, 23 May 2010 12:56:54 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=299644
Log:
Readability
Changed paths:
U pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php
Modified: pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php
===================================================================
--- pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php 2010-05-23 12:19:22 UTC (rev 299643)
+++ pear2/Pyrus_Developer/trunk/src/Pyrus/Developer/PackageFile/PEAR2SVN.php 2010-05-23 12:56:54 UTC (rev 299644)
@@ -269,27 +269,32 @@
}
if (count($files)) {
uksort($files, 'version_compare');
- $info = array_pop($files);
- $stability = $this->guessStabilityFromVersion($info[1]);
- $this->pxml->version['release'] = $info[1];
+ list($releasenotesfile, $releaseversion) = array_pop($files);
+ $stability = $this->guessStabilityFromVersion($releaseversion);
+
+ $this->pxml->version['release'] = $releaseversion;
$this->pxml->stability['release'] = $stability;
+ $this->pxml->notes = file_get_contents($this->path . DIRECTORY_SEPARATOR . $releasenotesfile);
+
$apistability = $stability;
- $apiversion = $this->pxml->version['api'];
+ $apiversion = $this->pxml->version['api'];
+
if ($stability == 'beta') {
- if ($this->pxml->version['api'] == '0.1.0') {
+ if ($apiversion == '0.1.0') {
$apiversion = '1.0.0';
}
$apistability = 'stable';
}
- $this->pxml->version['api'] = $apiversion;
+
+ $this->pxml->version['api'] = $apiversion;
$this->pxml->stability['api'] = $apistability;
- $this->pxml->notes = file_get_contents($this->path . DIRECTORY_SEPARATOR . $info[0]);
+
if ($this->doCompatible) {
- $this->pxml_compatible->version['release'] = $info[1];
+ $this->pxml_compatible->version['release'] = $releaseversion;
$this->pxml_compatible->stability['release'] = $stability;
- $this->pxml_compatible->version['api'] = $apiversion;
- $this->pxml_compatible->stability['api'] = $apistability;
- $this->pxml_compatible->notes = file_get_contents($this->path . DIRECTORY_SEPARATOR . $info[0]);
+ $this->pxml_compatible->version['api'] = $apiversion;
+ $this->pxml_compatible->stability['api'] = $apistability;
+ $this->pxml_compatible->notes = $this->pxml->notes;
}
}
}