From: Stig Bakken Date: Sat, 13 Apr 2002 00:20:40 +0000 (+0000) Subject: * missing file role message could be mistaken for missing maintainer role X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~678 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8c0edb86b047945cfaebdb0a37b40e608ca95055;p=php * missing file role message could be mistaken for missing maintainer role --- diff --git a/pear/PEAR/Common.php b/pear/PEAR/Common.php index a34db4f727..f9dccc6cd4 100644 --- a/pear/PEAR/Common.php +++ b/pear/PEAR/Common.php @@ -983,11 +983,11 @@ class PEAR_Common extends PEAR } else { foreach ($info['filelist'] as $file => $fa) { if (empty($fa['role'])) { - $errors[] = "$file: missing role"; + $errors[] = "file $file: missing role"; } elseif (!in_array($fa['role'], $this->file_roles)) { - $errors[] = "$file: invalid role, should be one of: ".implode(' ', $this->file_roles); + $errors[] = "file $file: invalid role, should be one of: ".implode(' ', $this->file_roles); } elseif ($fa['role'] == 'extsrc' && empty($fa['sources'])) { - $errors[] = "$file: no source files"; + $errors[] = "file $file: no source files"; } // (ssb) Any checks we can do for baseinstalldir? // (cox) Perhaps checks that either the target dir and baseInstall