logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: pear-core /PEAR/Command Package.php: msg#00223

Subject: cvs: pear-core /PEAR/Command Package.php
cellog          Sun Sep 26 01:41:28 2004 EDT

  Modified files:              
    /pear-core/PEAR/Command     Package.php 
  Log:
  implement --flat option for convert
  
http://cvs.php.net/diff.php/pear-core/PEAR/Command/Package.php?r1=1.69&r2=1.70&ty=u
Index: pear-core/PEAR/Command/Package.php
diff -u pear-core/PEAR/Command/Package.php:1.69 
pear-core/PEAR/Command/Package.php:1.70
--- pear-core/PEAR/Command/Package.php:1.69     Sun Sep 26 01:39:34 2004
+++ pear-core/PEAR/Command/Package.php  Sun Sep 26 01:41:28 2004
@@ -18,7 +18,7 @@
 // |          Greg Beaver <cellog@xxxxxxx>                                |
 // +----------------------------------------------------------------------+
 //
-// $Id: Package.php,v 1.69 2004/09/26 05:39:34 cellog Exp $
+// $Id: Package.php,v 1.70 2004/09/26 05:41:28 cellog Exp $
 
 require_once 'PEAR/Common.php';
 require_once 'PEAR/Command/Common.php';
@@ -817,7 +817,8 @@
             $newpf = &$gen->toV2();
             $gen = &$newpf->getDefaultGenerator();
             PEAR::staticPushErrorHandling(PEAR_ERROR_RETURN);
-            $saved = $gen->toPackageFile(dirname($newpackagexml), 
PEAR_VALIDATE_NORMAL,
+            $state = (isset($options['flat']) ? PEAR_VALIDATE_PACKAGING : 
PEAR_VALIDATE_NORMAL);
+            $saved = $gen->toPackageFile(dirname($newpackagexml), $state,
                 basename($newpackagexml));
             PEAR::staticPopErrorHandling();
             if (PEAR::isError($saved)) {

-- 
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>