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

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)    

 [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


 [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 by the end of next Sunday (CET). If this was a problem with the 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"?