diff options
-rw-r--r-- | pear/PEAR/Command/Package.php | 4 |
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"; } |