From 9037bedb9e29f6f87c108a232d103666759ec450 Mon Sep 17 00:00:00 2001 From: "Tomas V.V.Cox" Date: Sun, 19 Aug 2001 12:53:01 +0000 Subject: [PATCH] The "pear package" command will try to open "./package.xml" if no more params are given. --- pear/PEAR/Packager.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 | // | Tomas V.V.Cox | +// | | // +----------------------------------------------------------------------+ // // $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; -- 2.50.1