diff options
| author | Tomas V.V.Cox <cox@php.net> | 2001-08-19 12:53:01 +0000 |
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2001-08-19 12:53:01 +0000 |
| commit | 9037bedb9e29f6f87c108a232d103666759ec450 (patch) | |
| tree | 5f48abb5bbc4db1cc4e4f47ca90398d80ef89af6 /pear/PEAR/Packager.php | |
| parent | df54bca0a0cc2bc5d6f477364719e269995c0996 (diff) | |
| download | php-git-9037bedb9e29f6f87c108a232d103666759ec450.tar.gz | |
The "pear package" command will try to open "./package.xml" if no more
params are given.
Diffstat (limited to 'pear/PEAR/Packager.php')
| -rw-r--r-- | pear/PEAR/Packager.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pear/PEAR/Packager.php b/pear/PEAR/Packager.php index d09406d745..72591e1a99 100644 --- a/pear/PEAR/Packager.php +++ b/pear/PEAR/Packager.php @@ -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; |
