|
cvs: pearweb / package.php package.xml /include pear-rest.php: msg#00088php.pear.core
cellog Mon Oct 30 04:43:23 2006 UTC Modified files: /pearweb/include pear-rest.php /pearweb package.php package.xml Log: * fix REST generation for deprecated packages/channels * fix REST generation of packagesinfo.xml for categories http://cvs.php.net/viewvc.cgi/pearweb/include/pear-rest.php?r1=1.27&r2=1.28&diff_format=u Index: pearweb/include/pear-rest.php diff -u pearweb/include/pear-rest.php:1.27 pearweb/include/pear-rest.php:1.28 --- pearweb/include/pear-rest.php:1.27 Wed Oct 4 09:45:09 2006 +++ pearweb/include/pear-rest.php Mon Oct 30 04:43:22 2006 @@ -151,6 +151,9 @@ } $fullpackageinfo .= '</f>'; // list packages in a category + if (!is_dir($cdir . DIRECTORY_SEPARATOR . urlencode($category))) { + mkdir($cdir . DIRECTORY_SEPARATOR . urlencode($category)); + } file_put_contents($cdir . DIRECTORY_SEPARATOR . urlencode($category) . DIRECTORY_SEPARATOR . 'packagesinfo.xml', $fullpackageinfo); @chmod($cdir . DIRECTORY_SEPARATOR . urlencode($category) . @@ -226,17 +229,13 @@ } else { $parent = ''; } - if (isset($package['deprecated_package']) && $package['deprecated_package']) { - if ($package['deprecated_channel'] == PEAR_CHANNELNAME) { - $deprecated = ' - <dc>' . $package['deprecated_channel'] . '</dc> - <dp href="' . $extra . 'p/' . $package['deprecated_package'] . '"> ' . - $package['deprecated_package'] . '</dp>'; - } else { - $deprecated = ' - <dc>' . $package['deprecated_channel'] . '</dc> - <dp> ' . $package['deprecated_package'] . '</dp>'; - } + if ($package['unmaintained'] && $package['newpk_id']) { + $dpackage = $dbh->getOne('SELECT packages.name FROM packages WHERE + id = ' . $package['newpk_id']); + $deprecated = ' +<dc>pear.php.net</dc> +<dp href="' . $extra . 'p/' . strtolower($dpackage) . '"> ' . + $dpackage . '</dp>'; } else { $deprecated = ''; } http://cvs.php.net/viewvc.cgi/pearweb/package.php?r1=1.15&r2=1.16&diff_format=u Index: pearweb/package.php diff -u pearweb/package.php:1.15 pearweb/package.php:1.16 --- pearweb/package.php:1.15 Wed Oct 25 00:12:46 2006 +++ pearweb/package.php Mon Oct 30 04:43:22 2006 @@ -14,11 +14,12 @@ 'tests/', ), )); -$a->setReleaseVersion('1.0.0RC1'); +$a->setReleaseVersion('1.0.0RC2'); $a->setReleaseStability('beta'); $a->setAPIStability('stable'); $a->setNotes(' - Prepare for deployment through PEAR channel + * fix REST generation for deprecated packages/channels + * fix REST generation of packagesinfo.xml for categories '); $a->resetUsesrole(); $a->addUsesRole('web', 'Role_Web', 'pearified.com'); http://cvs.php.net/viewvc.cgi/pearweb/package.xml?r1=1.42&r2=1.43&diff_format=u Index: pearweb/package.xml diff -u pearweb/package.xml:1.42 pearweb/package.xml:1.43 --- pearweb/package.xml:1.42 Wed Oct 25 00:12:46 2006 +++ pearweb/package.xml Mon Oct 30 04:43:22 2006 @@ -52,10 +52,10 @@ <email>dufuz@xxxxxxx</email> <active>no</active> </developer> - <date>2006-10-24</date> - <time>19:09:22</time> + <date>2006-10-29</date> + <time>23:43:01</time> <version> - <release>1.0.0RC1</release> + <release>1.0.0RC2</release> <api>0.1.1</api> </version> <stability> @@ -64,7 +64,8 @@ </stability> <license uri="http://www.php.net/license">PHP License</license> <notes> - Prepare for deployment through PEAR channel + * fix REST generation for deprecated packages/channels + * fix REST generation of packagesinfo.xml for categories </notes> <contents> <dir baseinstalldir="/" name="/"> @@ -850,10 +851,24 @@ <release>beta</release> <api>stable</api> </stability> - <date>2006-10-24</date> + <date>2006-10-29</date> + <license uri="http://www.php.net/license">PHP License</license> + <notes>Prepare for deployment through PEAR channel</notes> + </release> + <release> + <version> + <release>1.0.0RC2</release> + <api>0.1.1</api> + </version> + <stability> + <release>beta</release> + <api>stable</api> + </stability> + <date>2006-10-29</date> <license uri="http://www.php.net/license">PHP License</license> <notes> - Prepare for deployment through PEAR channel + * fix REST generation for deprecated packages/channels + * fix REST generation of packagesinfo.xml for categories </notes> </release> </changelog> -- PEAR CVS Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | cvs: pear-core / package-PEAR.xml package2.xml: 00088, Greg Beaver |
|---|---|
| Next by Date: | cvs: pearweb /cron load-chm.sh: 00088, Martin Jansen |
| Previous by Thread: | cvs: pear-core / package-PEAR.xml package2.xmli: 00088, Greg Beaver |
| Next by Thread: | cvs: pearweb /cron load-chm.sh: 00088, Martin Jansen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |