svn: /pear2/sandbox/pear2.php.net/trunk/www/ index.php
| From: | Michael Gauthier | Date: | Tue, 22 Jun 2010 20:41:40 +0000 |
| Subject: | svn: /pear2/sandbox/pear2.php.net/trunk/www/ index.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9526@lists.php.net to get a copy of this message | ||
gauthierm Tue, 22 Jun 2010 20:41:40 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=300675
Log:
Add 'force' option to Pyrus so PEAR2Web can still get package info about releases that can
not be installed on the web server.
Changed paths:
U pear2/sandbox/pear2.php.net/trunk/www/index.php
Modified: pear2/sandbox/pear2.php.net/trunk/www/index.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/index.php 2010-06-22 19:35:18 UTC (rev 300674)
+++ pear2/sandbox/pear2.php.net/trunk/www/index.php 2010-06-22 20:41:40 UTC (rev 300675)
@@ -8,6 +8,10 @@
// Set preferred state to devel, so pyrus can get info on all releases
\PEAR2\Pyrus\Config::current()->preferred_state = 'devel';
+// Set 'force' option so we can get info about packages we can't actually
+// install on the Web server hosting PEAR2Web.
+\PEAR2\Pyrus\Main::$options['force'] = true;
+
$channel = new \PEAR2\Pyrus\ChannelFile(__DIR__ . '/channel.xml');
$options = $_GET + PEAR2Web\Router::getRoute($_SERVER['REQUEST_URI']);