cvs: pear-core /PEAR/PackageFile v2.php
| From: | Greg Beaver | Date: | Fri, 04 Mar 2005 02:13:23 +0000 |
| Subject: | cvs: pear-core /PEAR/PackageFile v2.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-30043@lists.php.net to get a copy of this message | ||
cellog Thu Mar 3 21:13:23 2005 EDT
Modified files:
/pear-core/PEAR/PackageFile v2.php
Log:
add the ability to do a package-info replacement with
apiversion
<tasks:replace from=\"@apiversion@\" to=\"apiversion\"
type=\"package-info\"/>
http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2.php?r1=1.87&r2=1.88&ty=u
Index: pear-core/PEAR/PackageFile/v2.php
diff -u pear-core/PEAR/PackageFile/v2.php:1.87 pear-core/PEAR/PackageFile/v2.php:1.88
--- pear-core/PEAR/PackageFile/v2.php:1.87 Mon Feb 14 16:38:16 2005
+++ pear-core/PEAR/PackageFile/v2.php Thu Mar 3 21:13:22 2005
@@ -17,7 +17,7 @@
// | |
// +----------------------------------------------------------------------+
//
-// $Id: v2.php,v 1.87 2005/02/14 21:38:16 cellog Exp $
+// $Id: v2.php,v 1.88 2005/03/04 02:13:22 cellog Exp $
require_once 'PEAR/ErrorStack.php';
require_once 'PEAR/Validate.php';
require_once 'PEAR/Dependency2.php';
@@ -628,6 +628,9 @@
if (!$arr) {
$arr = $this->getArray(true);
}
+ if ($field == 'apiversion') {
+ return $arr['version']['api'];
+ }
if (isset($arr['old'][$field])) {
if (!is_string($arr['old'][$field])) {
return null;