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

[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
                    when using alias
-Status:           Verified
+Status:           Closed
 Type:             Bug
 Package:          PEAR
 Package Version:  1.9.3
 PHP Version:      Irrelevant
 Assigned To:      dufuz
 Roadmap Versions: 
 New Comment:

-Status: Verified
+Status: Closed
This bug has been fixed in SVN.

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.




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

[2011-06-07 03:35:31] dufuz

-Summary: &quot;config-get -c&quot; not returning channel&#039;s
configuration
+Summary: &quot;config-get -c&quot; not returning channel&#039;s
configuration
          when using alias


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

[2011-06-05 12:02:51] doconnor

-Assigned To:
+Assigned To: dufuz


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

[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.