Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.10.15

Bug #6579 PFM2 changelog and license with uri
Submitted: 2006-01-25 15:57 UTC
From: farell Assigned: cellog
Status: Closed Package: PEAR
PHP Version: 4.4.2 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 7 + 23 = ?

 
 [2006-01-25 15:57 UTC] farell
Description: ------------ As its not really a bug, i post this entry as a change request. This once is related to PEAR_PackageFileManager2, but due to share code, its PEAR to be fix. When you import a package v1.0 and convert it to v2.0, if you have licenses that did not match known-list into the changelog section, then PFM2 will add uri like that: $uri = 'http://www.example.com'; See PEAR\PackageFile\Generator\v1.php near line 665. For example: ... <release> <version> <release>0.4.0</release> <api>0.4.0</api> </version> <stability> <release>beta</release> <api>beta</api> </stability> <date>2005-06-25</date> <license uri="http://www.example.com">PHP License 3.0</license> <notes>This is the initial release of the HTML_QuickForm_advmultiselect package. .... With PFM2 when you add a new release, (and of course entry in changelog) with an uri filled, the changelog entry lose the uri. It could be cool to keep this uri information. Solution is easy: into PEAR\PackageFile\v2\rw.php, generateChangeLogEntry() method, change line 'license' => $this->getLicense(), by line 'license' => $this->getLicense(true), Then import package v1 and new package v2 will have both changelog with full license details. Laurent Expected result: ---------------- <license uri="http://www.php.net/license/3_01.txt">PHP License 3.01</license> <notes>* news - introduce v2 package XML - upgrade license from PHP 3.0 to 3.01</notes> ... <changelog> <release> <version> <release>1.2.0</release> <api>1.0.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2006-01-25</date> <license uri="http://www.php.net/license/3_01.txt">PHP License 3.01</license> <notes>* news - introduce v2 package XML - upgrade license from PHP 3.0 to 3.01</notes> </release> Actual result: -------------- <license uri="http://www.php.net/license/3_01.txt">PHP License 3.01</license> <notes>* news - introduce v2 package XML - upgrade license from PHP 3.0 to 3.01</notes> ... <changelog> <release> <version> <release>1.2.0</release> <api>1.0.0</api> </version> <stability> <release>stable</release> <api>stable</api> </stability> <date>2006-01-25</date> <license>PHP License 3.01</license> <notes>* news - introduce v2 package XML - upgrade license from PHP 3.0 to 3.01</notes> </release>

Comments

 [2006-01-28 17:35 UTC] cellog
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.