cellog Sun Nov 28 02:12:45 2004 EDT
Modified files:
/pear-core/PEAR/PackageFile v1.php
Log:
add missing error constant and message
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.39&r2=1.40&ty=u
Index: pear-core/PEAR/PackageFile/v1.php
diff -u pear-core/PEAR/PackageFile/v1.php:1.39
pear-core/PEAR/PackageFile/v1.php:1.40
--- pear-core/PEAR/PackageFile/v1.php:1.39 Sat Nov 27 20:56:20 2004
+++ pear-core/PEAR/PackageFile/v1.php Sun Nov 28 02:12:45 2004
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: v1.php,v 1.39 2004/11/28 01:56:20 cellog Exp $
+// $Id: v1.php,v 1.40 2004/11/28 07:12:45 cellog Exp $
require_once 'PEAR/PackageFile/Generator/v1.php';
/**
@@ -242,6 +242,11 @@
define('PEAR_PACKAGEFILE_ERROR_PHP5', 46);
/**
+ * Error code when a file is listed in package.xml but does not exist
+ */
+define('PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND', 47);
+
+/**
* package.xml encapsulator
* @package PEAR
* @author Greg Beaver
@@ -906,6 +911,8 @@
'Channel validator error: field "%field%" - %reason%',
PEAR_PACKAGEFILE_ERROR_PHP5 =>
'Error, PHP5 token encountered, analysis should be in
PHP5',
+ PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND =>
+ 'File "%file%" in package.xml does not exist',
);
}
@@ -1083,7 +1090,7 @@
call_user_func_array($log, array(1, "Analyzing $file"));
if (!file_exists($dir_prefix . DIRECTORY_SEPARATOR . $file)) {
$this->_validateError(PEAR_PACKAGEFILE_ERROR_FILE_NOTFOUND,
- array('file' => $dir_prefix . DIRECTORY_SEPARATOR .
$file));
+ array('file' => realpath($dir_prefix) .
DIRECTORY_SEPARATOR . $file));
continue;
}
$srcinfo = $this->_analyzeSourceCode($dir_prefix .
DIRECTORY_SEPARATOR . $file);
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
|