cvs: php-src /pear/PEAR/Command Package.php

From: Date: Tue, 08 Jun 2004 18:26:20 +0000
Subject: cvs: php-src /pear/PEAR/Command Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-382@lists.php.net to get a copy of this message
cellog Tue Jun 8 14:26:20 2004 EDT Modified files: /php-src/pear/PEAR/Command Package.php Log: partial fix, bug #1163: rpm build doesn't build properly http://cvs.php.net/diff.php/php-src/pear/PEAR/Command/Package.php?r1=1.60&r2=1.61&ty=u Index: php-src/pear/PEAR/Command/Package.php diff -u php-src/pear/PEAR/Command/Package.php:1.60 php-src/pear/PEAR/Command/Package.php:1.61 --- php-src/pear/PEAR/Command/Package.php:1.60 Sat Jan 31 17:39:25 2004 +++ php-src/pear/PEAR/Command/Package.php Tue Jun 8 14:26:20 2004 @@ -17,7 +17,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Package.php,v 1.60 2004/01/31 22:39:25 cellog Exp $ +// $Id: Package.php,v 1.61 2004/06/08 18:26:20 cellog Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Command/Common.php'; @@ -639,6 +639,9 @@ $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 @@ } + $name = str_replace('\\', '/', $name); $info['files'] .= "$prefix/$name\n"; }

« previous php.pear.core (#382) next »