mirror of
https://github.com/php/php-src.git
synced 2025-08-18 23:18:56 +02: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
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue