]> git.pld-linux.org Git - packages/php-pear-PEAR.git/commitdiff
- handle optional php dep separately for v1 packages auto/ac/php-pear-PEAR-1_4_5-3
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Dec 2005 11:06:35 +0000 (11:06 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    php-pear-PEAR-rpmvars.patch -> 1.22

php-pear-PEAR-rpmvars.patch

index fe69bb74b089b9d733c9513adcd3b5ad7927bc9d..48798499f54d78d5986bbed34ee7ae82335957ca 100644 (file)
              }
          }
  
+--- ./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;
+                     }
This page took 0.072916 seconds and 4 git commands to generate.