Changes between Version 1 and Version 2 of YumCodeSnippets

Show
Ignore:
Author:
skvidal (IP: 24.211.246.61)
Timestamp:
11/14/08 16:57:01 (9 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippets

    v1 v2  
    8888}}} 
    8989 
     90Report back the list of issues with an installed package (like rpm -V pkgname): 
     91 
     92{{{ 
     93import yum 
     94my = yum.YumBase() 
     95pkgs = my.rpmdb.searchNevra(name='yum') 
     96for pkg in pkgs: 
     97    errors = pkg.verify() 
     98    for fn in errors.keys(): 
     99        for prob in errors[fn]: 
     100            print '%s - %s' % (fn, prob.message) 
     101 
     102}}} 
     103 
    90104more?