summaryrefslogtreecommitdiff
path: root/pear
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2004-06-08 18:26:20 +0000
committerGreg Beaver <cellog@php.net>2004-06-08 18:26:20 +0000
commit1f20b7a626ab096853658dd6143dbe195d81b975 (patch)
tree4b13b978dc2d8c7c5fb48ad7537462b1d193edd9 /pear
parentd14e2598233ab70d82814c6cc484a2f9bda0e67c (diff)
downloadphp-git-1f20b7a626ab096853658dd6143dbe195d81b975.tar.gz
partial fix, bug #1163: rpm build doesn't build properly
Diffstat (limited to 'pear')
-rw-r--r--pear/PEAR/Command/Package.php4
1 files changed, 4 insertions, 0 deletions
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";
}