Author: glen                         Date: Tue Dec 13 11:06:40 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- handle optional php dep separately for v1 packages

---- Files affected:
SOURCES:
   php-pear-PEAR-rpmvars.patch (1.21 -> 1.22) 

---- Diffs:

================================================================
Index: SOURCES/php-pear-PEAR-rpmvars.patch
diff -u SOURCES/php-pear-PEAR-rpmvars.patch:1.21 
SOURCES/php-pear-PEAR-rpmvars.patch:1.22
--- SOURCES/php-pear-PEAR-rpmvars.patch:1.21    Tue Dec 13 11:39:04 2005
+++ SOURCES/php-pear-PEAR-rpmvars.patch Tue Dec 13 12:06:35 2005
@@ -422,3 +422,30 @@
              }
          }
  
+--- ./usr/share/pear/PEAR/Command/Package.php  2005-12-13 01:47:22.000000000 
+0200
++++ /usr/share/pear/PEAR/Command/Package.php   2005-12-13 12:47:21.000000000 
+0200
+@@ -913,7 +913,7 @@
+         $info['version'] = $pf->getVersion();
+         $info['release_license'] = $pf->getLicense();
+         $info['release_state'] = $pf->getState();
+-              list($info['class'], $info['subclass']) = explode('_', 
$info['package'], 2);
++              @list($info['class'], $info['subclass']) = explode('_', 
$info['package'], 2);
+               if (empty($info['subclass'])) {
+                       $info['subclass'] = '%{nil}';
+               }
+@@ -930,8 +930,13 @@
+                                               if ($dep['type'] == 'ext') {
+                                                       $info['optional-ext'][] 
= 'php-' . $dep['name'];
+                                               } else {
+-                                                      $info['optional'] .= 
"'pear(". str_replace('_', '/', $dep['name']) . ".*)' ";
+-                                                      $info['optional-pkg'][] 
= 'php-pear-'. $dep['name'];
++                                                      if ($dep['type'] == 
'php') {
++                                                              # this doesn't 
make much sense, so ignore
++                                                              
#$info['optional-php'][] = 'php-common';
++                                                      } else {
++                                                              
$info['optional'] .= "'pear(". str_replace('_', '/', $dep['name']) . ".*)' ";
++                                                              
$info['optional-pkg'][] = 'php-pear-'. $dep['name'];
++                                                      }
+                                               }
+                         continue;
+                     }
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/SOURCES/php-pear-PEAR-rpmvars.patch?r1=1.21&r2=1.22&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to