cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php

From: Date: Mon, 03 Oct 2005 03:20:14 +0000
Subject: cvs: pear-core / package-PEAR.xml package2.xml /PEAR/PackageFile v1.php /PEAR/PackageFile/v2 Validator.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-35235@lists.php.net to get a copy of this message
cellog Sun Oct 2 23:20:14 2005 EDT Modified files: /pear-core/PEAR/PackageFile v1.php /pear-core/PEAR/PackageFile/v2 Validator.php /pear-core package-PEAR.xml package2.xml Log: on second thought, there is no good way to kludge for bad package.xml, so just fail on a package.xml with <file name="./whatever.whatever"> * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v1.php?r1=1.62&r2=1.63&ty=u Index: pear-core/PEAR/PackageFile/v1.php diff -u pear-core/PEAR/PackageFile/v1.php:1.62 pear-core/PEAR/PackageFile/v1.php:1.63 --- pear-core/PEAR/PackageFile/v1.php:1.62 Sun Oct 2 23:07:54 2005 +++ pear-core/PEAR/PackageFile/v1.php Sun Oct 2 23:20:12 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: v1.php,v 1.62 2005/10/03 03:07:54 cellog Exp $ + * @version CVS: $Id: v1.php,v 1.63 2005/10/03 03:20:12 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -1028,6 +1028,8 @@ 'File "%file%" has no role, expecting one of "%roles%"', PEAR_PACKAGEFILE_ERROR_INVALID_FILEROLE => 'File "%file%" has invalid role "%role%", expecting one of "%roles%"', + PEAR_PACKAGEFILE_ERROR_INVALID_FILENAME => + 'File "%file%" cannot start with ".", cannot package or install', PEAR_PACKAGEFILE_ERROR_INVALID_PHPFILE => 'Parser error: invalid PHP found in file "%file%"', PEAR_PACKAGEFILE_ERROR_NO_PNAME_PREFIX => @@ -1190,11 +1192,9 @@ $this->_validateError(PEAR_PACKAGEFILE_ERROR_INVALID_FILEROLE, array('file' => $file, 'role' => $fa['role'], 'roles' => PEAR_Common::getFileRoles())); } - if ($state == PEAR_VALIDATE_PACKAGING) { - if ($file{0} == '.') { - $this->_validateError(PEAR_PACKAGEFILE_ERROR_INVALID_FILENAME, - array('file' => $file)); - } + if ($file{0} == '.') { + $this->_validateError(PEAR_PACKAGEFILE_ERROR_INVALID_FILENAME, + array('file' => $file)); } } } http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2/Validator.php?r1=1.76&r2=1.77&ty=u Index: pear-core/PEAR/PackageFile/v2/Validator.php diff -u pear-core/PEAR/PackageFile/v2/Validator.php:1.76 pear-core/PEAR/PackageFile/v2/Validator.php:1.77 --- pear-core/PEAR/PackageFile/v2/Validator.php:1.76 Sun Oct 2 23:07:57 2005 +++ pear-core/PEAR/PackageFile/v2/Validator.php Sun Oct 2 23:20:14 2005 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Validator.php,v 1.76 2005/10/03 03:07:57 cellog Exp $ +// $Id: Validator.php,v 1.77 2005/10/03 03:20:14 cellog Exp $ /** * Private validation class used by PEAR_PackageFile_v2 - do not use directly, its * sole purpose is to split up the PEAR/PackageFile/v2.php file to make it smaller @@ -1011,8 +1011,7 @@ } foreach ($list['file'] as $i => $file) { - if ($this->_curState == PEAR_VALIDATE_PACKAGING && - isset($file['attribs']) && isset($file['attribs']['name']) && + if (isset($file['attribs']) && isset($file['attribs']['name']) && $file['attribs']['name']{0} == '.') { // name is something like "./doc/whatever.txt" $this->_invalidFileName($file['attribs']['name']); http://cvs.php.net/diff.php/pear-core/package-PEAR.xml?r1=1.283&r2=1.284&ty=u Index: pear-core/package-PEAR.xml diff -u pear-core/package-PEAR.xml:1.283 pear-core/package-PEAR.xml:1.284 --- pear-core/package-PEAR.xml:1.283 Sun Oct 2 02:33:06 2005 +++ pear-core/package-PEAR.xml Sun Oct 2 23:20:14 2005 @@ -82,6 +82,7 @@ * fix Bug #5531: adding of installconditions/binarypackage/configure options to extsrc may fail * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error </notes> <provides type="class" name="OS_Guess"/> <provides type="class" name="System"/> http://cvs.php.net/diff.php/pear-core/package2.xml?r1=1.175&r2=1.176&ty=u Index: pear-core/package2.xml diff -u pear-core/package2.xml:1.175 pear-core/package2.xml:1.176 --- pear-core/package2.xml:1.175 Sun Oct 2 02:33:06 2005 +++ pear-core/package2.xml Sun Oct 2 23:20:14 2005 @@ -87,6 +87,7 @@ * fix Bug #5531: adding of installconditions/binarypackage/configure options to extsrc may fail * fix Bug #5550: PHP notices/warnings/errors are 1 file off in trace + * fix Bug #5580: pear makerpm XML_sql2xml-0.3.2.tgz error </notes> <contents> <dir name="/">

« previous php.pear.cvs (#35235) next »