mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
The "pear package" command will try to open "./package.xml" if no more
params are given.
This commit is contained in:
parent
df54bca0a0
commit
9037bedb9e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user