From: Greg Beaver Date: Tue, 8 Jun 2004 18:26:20 +0000 (+0000) Subject: partial fix, bug #1163: rpm build doesn't build properly X-Git-Tag: php-5.0.0~248 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f20b7a626ab096853658dd6143dbe195d81b975;p=php partial fix, bug #1163: rpm build doesn't build properly --- diff --git a/pear/PEAR/Command/Package.php b/pear/PEAR/Command/Package.php index 1186cbc5b8..dcdc86bd1a 100644 --- a/pear/PEAR/Command/Package.php +++ b/pear/PEAR/Command/Package.php @@ -639,6 +639,9 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm $srcfiles = 0; foreach ($info['filelist'] as $name => $attr) { + if (!isset($attr['role'])) { + continue; + } if ($attr['role'] == 'doc') { $info['doc_files'] .= " $name"; @@ -677,6 +680,7 @@ Wrote: /usr/src/redhat/RPMS/i386/PEAR::Net_Socket-1.0-1.i386.rpm } + $name = str_replace('\\', '/', $name); $info['files'] .= "$prefix/$name\n"; }