]> git.pld-linux.org Git - packages/rpm.git/commitdiff
- the both php versions autoprovs are not possible as this script is run for each...
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 22 Oct 2008 14:03:44 +0000 (14:03 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    rpm-php-requires.php -> 1.6

rpm-php-requires.php

index 12802245daaa7dc67eaeaedbd289a88a5aae7933..a0979e75b69563d6a4fd95b3a24b24faaf695e9f 100644 (file)
@@ -3,7 +3,7 @@
 /**
  *
  * Check system dependences between php-pear modules.
- * Based on Perl version rpm-php-provides.
+ * Based on Perl version rpm-php-requires.
  *
  * Paweł Gołaszewski <blues@pld-linux.org>
  * Michał Moskal <malekith@pld-linux.org>
@@ -37,16 +37,12 @@ function extdeps($files) {
 
        if (version_compare($res['version'], '5.0.0', 'ge')) {
                $epoch = 4;
-               // produce dependencies only for php5
-               $compat = false;
                // session, pcre are statically compiled in
                // date, SPL, SimpleXML are internal for php
                // sapi_apache?
                $staticmods = array('standard', 'ereg', 'session', 'pcre', 'date', 'spl', 'simplexml');
        } else {
                $epoch = 3;
-               // produce dependencies where php4/php5 both are ok
-               $compat = true;
                // session has always been compiled in
                $staticmods = array('standard', 'ereg', 'session');
        }
@@ -58,11 +54,7 @@ function extdeps($files) {
                        continue;
                }
 
-               if ($compat) {
-                       echo "php(", $ext, ")\n";
-               } else {
-                       echo "php-", $ext, "\n";
-               }
+               echo "php(", $ext, ")\n";
        }
 }
 
This page took 0.037379 seconds and 4 git commands to generate.