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

Bug #6735 PEAR_PackageFile::fromTgzFile doesn't work with package.xml not in root dir
Submitted: 2006-02-09 14:52 UTC
From: cweiske Assigned: cellog
Status: Closed Package: PEAR (version 1.4.6)
PHP Version: Irrelevant OS: Linux
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 : 15 + 47 = ?

 
 [2006-02-09 14:52 UTC] cweiske
Description: ------------ PEAR_PackageFile::fromTgzFile is meant to create a package file object from the package.xml in an .tgz archive. That fails if the package.xml is not in the root directoy, but in an subdirectory. The code that tries to cover this is wrong: Line#334: } elseif (ereg('package.xml$', $name, $match)) { $xml = $match[0]; break; this should actually be $xml = $name, because Archive_Tar would try to search for "package.xml" only and not $subdir/package.xml

Comments

 [2006-02-09 22:39 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. now *that's* an edge case :) You trying to package something manually without "pear package"?