]> granicus.if.org Git - php/commitdiff
* make *_dir config parameters available for substitution in the
authorStig Bakken <ssb@php.net>
Tue, 22 Oct 2002 23:08:55 +0000 (23:08 +0000)
committerStig Bakken <ssb@php.net>
Tue, 22 Oct 2002 23:08:55 +0000 (23:08 +0000)
  rpm spec file template

pear/PEAR/Command/Package.php

index 1ea1bf60e313b96f3967afdac55926a38582f1e0..49b0d92328a0c823020cb834bb5f90200cacc3f1 100644 (file)
@@ -474,6 +474,12 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm
         } else {
             $arch = 'noarch';
         }
+        $cfk = array('master_server', 'php_dir', 'ext_dir', 'doc_dir',
+                     'bin_dir', 'data_dir', 'test_dir');
+        foreach ($cfg as $k) {
+            $info[$k] = $this->config->get($k);
+        }
+        $info['arch'] = $arch;
         $fp = @fopen($spec_template, "r");
         if (!$fp) {
             return $this->raiseError("could not open RPM spec file template $spec_template: $php_errormsg");