appending package state to filename
| From: | Alan Knowles | Date: | Thu, 22 Apr 2004 06:43:51 +0000 |
| Subject: | appending package state to filename | ||
| Groups: | php.pear.core | ||
| Request: | Send a blank email to pear-core+get-277@lists.php.net to get a copy of this message | ||
As we chatted out before - below is a patch that adds the package state to the filename. rather than having to add it to the version number..
It's pretty easy to find in PEAR/Packager.php - function package()
// {{{ TAR the Package -------------------------------------------
$ext = $compress ? '.tgz' : '.tar';
$dest_package = getcwd() . DIRECTORY_SEPARATOR . $pkgver . $ext;
// {{{ TAR the Package -------------------------------------------
$ext = $compress ? '.tgz' : '.tar';
$dest_package = getcwd() . DIRECTORY_SEPARATOR . $pkgver . '-' . $pkginfo['release_state'] . $ext;
I presume that the filename is not checked anywhere else in the pear system, so it shouldnt affect anything else..
Regards
Alan
--
Can you help out?
Need Consulting Services or Know of a Job?
http://www.akbkhome.com