The "pear package" command will try to open "./package.xml" if no more

params are given.
This commit is contained in:
Tomas V.V.Cox 2001-08-19 12:53:01 +00:00
parent df54bca0a0
commit 9037bedb9e

View File

@ -15,6 +15,7 @@
// +----------------------------------------------------------------------+
// | Authors: Stig Bakken <ssb@fast.no> |
// | Tomas V.V.Cox <cox@idecnet.com> |
// | |
// +----------------------------------------------------------------------+
//
// $Id$
@ -114,8 +115,11 @@ class PEAR_Packager extends PEAR_Common
// {{{ 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;