Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.9.4

Bug #16444 Setting preferred mirror fails
Submitted: 2009-07-16 18:48 UTC Modified: 2009-08-02 12:10 UTC
From: matterk2 Assigned: dufuz
Status: Closed Package: PEAR (version 1.8.1)
PHP Version: Irrelevant OS: mac os x / debian
Roadmaps: 1.9.0    
Subscription  


 [2009-07-16 18:48 UTC] matterk2 (Matt Erkkila)
Description: ------------ When trying to set the preferred_mirror setting in a pear install. It tries to see if the mirror you are setting has a registry file in the .channels/ folder, which I don't think it is supposed to. see PEAR/Command/Config.php (roughly line 245) if ($params[0] == 'preferred_mirror' && !$reg->channelExists($params[1])) $params[1] in this case is us.pear.php.net

Comments

 [2009-08-02 11:42 UTC] dufuz (Helgi Þormar Þorbjörnsson)
This is due to request #11230 Commit: http://svn.php.net/viewvc/pear/pear-core/trunk/PEAR/Command/Config.php?r1=276383&r2=277845 Are you absolutely sure your channel file is updated?
 [2009-08-02 12:10 UTC] dufuz (Helgi Þormar Þorbjörnsson)
-Status: Open +Status: Closed -Assigned To: +Assigned To: dufuz
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. The mirrors do not create a channel registry file for obvious reasons, a oversight on my part, fixed that in my most recent commit. You can test it by using the installer from SVN or applying this patch: http://news.php.net/php.pear.core/8566 and http://news.php.net/php.pear.core/8567 (Sorry for the 2 patches, my svn client messed up a little bit)