]> granicus.if.org Git - php/commitdiff
The "pear package" command will try to open "./package.xml" if no more
authorTomas V.V.Cox <cox@php.net>
Sun, 19 Aug 2001 12:53:01 +0000 (12:53 +0000)
committerTomas V.V.Cox <cox@php.net>
Sun, 19 Aug 2001 12:53:01 +0000 (12:53 +0000)
params are given.

pear/PEAR/Packager.php

index d09406d74593f6d0fbaf6377533369d9accd1bb5..72591e1a990916881d08de1cd680affb737bb275 100644 (file)
@@ -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;