From: Stig Bakken Date: Sat, 23 Mar 2002 10:17:39 +0000 (+0000) Subject: * support having a toplevel package.xml in tgz files X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~1100 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed16ccb27599c03c293c62f6bc0573b2c79066e7;p=php * support having a toplevel package.xml in tgz files --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index ddcd4e4604..f1a89476c4 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -409,7 +409,9 @@ class PEAR_Common extends PEAR $xml = null; foreach ($content as $file) { $name = $file['filename']; - if (ereg('^.*/package.xml$', $name, $match)) { + if ($name == 'package.xml') { + $xml = $name; + } elseif (ereg('^.*/package.xml$', $name, $match)) { $xml = $match[0]; } }