From 8c0edb86b047945cfaebdb0a37b40e608ca95055 Mon Sep 17 00:00:00 2001 From: Stig Bakken Date: Sat, 13 Apr 2002 00:20:40 +0000 Subject: [PATCH] * missing file role message could be mistaken for missing maintainer role --- pear/PEAR/Common.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.50.1