[Yum-devel] Making yum quiet - yum.logginglevels.setDebugLevel(0) seemingly not working...

MacCana, Mike (London) mmaccana at maninvestments.com
Thu Jun 11 15:05:08 UTC 2009


Hi folks,
 
I'm installing a few packages using yum.YumBase.install in a
postinstall. From the module docs, I gather setDebugLevel(0) should be
the equivalent of a yum '--quiet', but alas, the following code...
 
def install():
    yb = yum.YumBase()
   
    yum.logginglevels.setDebugLevel(0)
    yum.logginglevels.setErrorLevel(0)
    
    yb.install(name='zlib-devel')
    yb.resolveDeps()
    yb.processTransaction()
    print('success\n')
 
install()

...still prints output like this...
 
Installing: zlib-devel-1.2.3-3.i386 9676/255692 [1/2]
Installing: zlib-devel-1.2.3-3.i386 75344/255692 [1/2]
Installing: zlib-devel-1.2.3-3.i386 75996/255692 [1/2]
etc.
 
What am I missing? Pointers to docs more than welcome, and thanks.
 
Mike
Mike MacCana
Unix Engineering
Technology Group

Man Investments
Centennium House
100 Lower Thames Street
London EC3R 6DL

Tel: +44 (0) 207 144 3274
Mob: +44 (0) 7547 004474
Fax: +44 (0) 207 144 2312

 

**********************************************************************
Please consider the environment before printing this email or its attachments.
The contents of this email are for the named addressees only.  It contains information which may be confidential and privileged.  If you are not the intended recipient, please notify the sender immediately, destroy this email and any attachments and do not otherwise disclose or use them. Email transmission is not a secure method of communication and Man Investments cannot accept responsibility for the completeness or accuracy of this email or any attachments. Whilst Man Investments makes every effort to keep its network free from viruses, it does not accept responsibility for any computer virus which might be transferred by way of this email or any attachments. This email does not constitute a request, offer, recommendation or solicitation of any kind to buy, subscribe, sell or redeem any investment instruments or to perform other such transactions of any kind. Man Investments reserves the right to monitor, record and retain all electronic communications through its network to ensure the integrity of its systems, for record keeping and regulatory purposes. 
Visit us at: www.maninvestments.com 
TG0908
**********************************************************************

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baseurl.org/pipermail/yum-devel/attachments/20090611/d4549dec/attachment.htm>


More information about the Yum-devel mailing list