diff options
| author | Tomas V.V.Cox <cox@php.net> | 2003-06-14 16:56:19 +0000 | 
|---|---|---|
| committer | Tomas V.V.Cox <cox@php.net> | 2003-06-14 16:56:19 +0000 | 
| commit | 9f828a503530d89d6113aa997b49c2da2532fa8c (patch) | |
| tree | b3a40ab8c5f6d118be7cbb1e1022819e539bb0df /pear/PEAR/Command/Package.php | |
| parent | 3861a10c076113d84d15e49675bc74703982890d (diff) | |
| download | php-git-9f828a503530d89d6113aa997b49c2da2532fa8c.tar.gz | |
Fix some typos in makerpm and removed unused debug code
Diffstat (limited to 'pear/PEAR/Command/Package.php')
| -rw-r--r-- | pear/PEAR/Command/Package.php | 12 | 
1 files changed, 2 insertions, 10 deletions
diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 5bc523edc3..372a171306 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -583,22 +583,14 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm                                      array('installroot' => $instroot,                                            'nodeps' => true));          $pkgdir = "$info[package]-$info[version]"; -//        print "instroot=$instroot\n"; -//        print_r($info); -//        return true; -          $info['rpm_xml_dir'] = '/var/lib/pear';          $this->config->set('verbose', $tmp);          if (!$tar->extractList("$pkgdir/package.xml", $tmpdir, $pkgdir)) {              return $this->raiseError("failed to extract $params[0]");          } -        if (!file_exists("$tmpdir/package.xml")) { +        if (!file_exists("package.xml")) {              return $this->raiseError("no package.xml found in $params[0]");          } -//        System::mkdir("-p $instroot$info[rpm_xml_dir]"); -//        if (!@copy("$tmpdir/package.xml", "$instroot$info[rpm_xml_dir]/$info[package].xml")) { -//            return $this->raiseError("could not copy package.xml file: $php_errormsg"); -//        }          if (isset($options['spec-template'])) {              $spec_template = $options['spec-template'];          } else { @@ -631,7 +623,7 @@ 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', +        $cfg = 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);  | 
