Skip to content

Commit 9037bed

Browse files
committed
The "pear package" command will try to open "./package.xml" if no more
params are given.
1 parent df54bca commit 9037bed

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pear/PEAR/Packager.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
// +----------------------------------------------------------------------+
1616
// | Authors: Stig Bakken <ssb@fast.no> |
1717
// | Tomas V.V.Cox <cox@idecnet.com> |
18+
// | |
1819
// +----------------------------------------------------------------------+
1920
//
2021
// $Id$
@@ -114,8 +115,11 @@ function _PEAR_Packager() {
114115

115116
// {{{ package()
116117

117-
function package($pkgfile = 'package.xml')
118+
function package($pkgfile = null)
118119
{
120+
if (empty($pkgfile)) {
121+
$pkgfile = 'package.xml';
122+
}
119123
$pkginfo = $this->infoFromDescriptionFile($pkgfile);
120124
if (PEAR::isError($pkginfo)) {
121125
return $pkginfo;

0 commit comments

Comments
 (0)