[PEAR-BUG] Bug #18581 [Ver]: "config-get -c" not returning channel's configuration

[email protected]
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at http://pear.php.net/bugs/bug.php?id=18581&edit=1

 ID:               18581
 Updated by:       [email protected]
 Reported By:      jan at horde dot org
 Summary:          "config-get -c" not returning channel's configuration
 Status:           Verified
 Type:             Bug
 Package:          PEAR
 Package Version:  1.9.3
 PHP Version:      Irrelevant
-Assigned To:      
+Assigned To:      dufuz
 Roadmap Versions: 
 New Comment:

-Assigned To:
+Assigned To: dufuz



Previous Comments:
------------------------------------------------------------------------

[2011-06-05 12:00:46] doconnor

Added #patch bug:18581;patch:Config.php;revision:1307275246;.

------------------------------------------------------------------------

[2011-06-05 11:56:09] doconnor

-Status:          Open
+Status:          Verified
-Package Version: 1.9.2
+Package Version: 1.9.3
s/discover-channel/channel-discover

So; after a bit of poking around; config-show correctly realises that
'horde' is short 
for pear.horde.org

config-get; not so much.

Doing:

pear config-get -c pear.horde.org horde_dir

produces the correct results.


doConfigShow() is doing:
        $channel = $reg->channelName($channel);

but doConfigGet() is not.

------------------------------------------------------------------------

[2011-06-03 09:55:21] yunosh

Description:
------------
Using the -c flag for config-get is not returning that channel's
configuration.

Test script:
---------------
pear discover-channel pear.horde.org
pear install horde/horde_role
pear run-scripts horde/horde_role -> e.g. /tmp/horde
pear config-show -c horde | grep horde_dir
pear config-get -c horde horde_dir


Expected result:
----------------
/tmp/horde
/tmp/horde

Actual result:
--------------
/tmp/horde
/usr/share/php/www/horde (or whatever your system's php_dir +
/www/horde)

------------------------------------------------------------------------


-- 
Edit this bug report at http://pear.php.net/bugs/bug.php?id=18581&edit=1
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.