Skip Menu |

This queue is for tickets about the CPANPLUS CPAN distribution.

Report information
The Basics
Id: 34730
Status: resolved
Priority: 0/
Queue: CPANPLUS

People
Owner: Nobody in particular
Requestors: imacat [...] mail.imacat.idv.tw
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.84
Fixed in: (no value)



Subject: Avoid Message "Checking if source files are up to date"
Dear Jos Boumans, Hi. This is imacat from Taiwan. I wonder if there is any way to avoid the following messages: [MSG] Checking if source files are up to date [MSG] Retrieving /opt/perl/testers/5.8.8/.cpanplus/sourcefiles.2.18.stored I'm writing scripts based on CPANPLUS, where I would like to print the output to STDOUT and capture with another application later. I looked into the code, and found no way to control the output of CPANPLUS in CPANPLUS::Error::cp_msg(). I wonder if there can be some way to avoid CPANPLUS messages, besides something like "open STDOUT, '>&/dev/null';"? This would make CPANPLUS extremely useful as a module used in other applications. Thank you very much in advance.
On Mon Apr 07 02:25:30 2008, IMACAT wrote: Show quoted text
> Dear Jos Boumans, > > Hi. This is imacat from Taiwan. I wonder if there is any way to > avoid the following messages: > > [MSG] Checking if source files are up to date > [MSG] Retrieving /opt/perl/testers/5.8.8/.cpanplus/sourcefiles.2.18.stored > > I'm writing scripts based on CPANPLUS, where I would like to print > the output to STDOUT and capture with another application later. I > looked into the code, and found no way to control the output of CPANPLUS > in CPANPLUS::Error::cp_msg(). I wonder if there can be some way to > avoid CPANPLUS messages, besides something like "open STDOUT, > '>&/dev/null';"? > > This would make CPANPLUS extremely useful as a module used in other > applications. > > Thank you very much in advance.
To disable messages that are prefixed with [MSG], you can turn off verbosity in your CPANPLUS config. (s conf verbose 0 from the default shell) and it will not print diagnostics anymore. You can also use CPANPLUS through the API, at which point you dont have to capture output,