svn: /pear2/sandbox/pear2.php.net/trunk/www/ index.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
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']);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.