cvs: php4 /pear/PEAR Packager.php

From: Date: Sun, 19 Aug 2001 12:53:01 +0000
Subject: cvs: php4 /pear/PEAR Packager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-576@lists.php.net to get a copy of this message
cox Sun Aug 19 08:53:01 2001 EDT Modified files: /php4/pear/PEAR Packager.php Log: The "pear package" command will try to open "./package.xml" if no more params are given. Index: php4/pear/PEAR/Packager.php diff -u php4/pear/PEAR/Packager.php:1.11 php4/pear/PEAR/Packager.php:1.12 --- php4/pear/PEAR/Packager.php:1.11 Sun Aug 19 08:37:51 2001 +++ php4/pear/PEAR/Packager.php Sun Aug 19 08:53:01 2001 @@ -15,9 +15,10 @@ // +----------------------------------------------------------------------+ // | Authors: Stig Bakken <ssb@fast.no> | // | Tomas V.V.Cox <cox@idecnet.com> | +// | | // +----------------------------------------------------------------------+ // -// $Id: Packager.php,v 1.11 2001/08/19 12:37:51 cox Exp $ +// $Id: Packager.php,v 1.12 2001/08/19 12:53:01 cox Exp $ require_once 'PEAR/Common.php'; @@ -114,8 +115,11 @@ // {{{ package() - function package($pkgfile = 'package.xml') + function package($pkgfile = null) { + if (empty($pkgfile)) { + $pkgfile = 'package.xml'; + } $pkginfo = $this->infoFromDescriptionFile($pkgfile); if (PEAR::isError($pkginfo)) { return $pkginfo;

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