Changes between Version 1 and Version 2 of YumCodeSnippet/ListInstalledPkgs

Show
Ignore:
Author:
james (IP: 65.172.155.225)
Timestamp:
07/13/12 16:21:21 (5 years ago)
Comment:

fix c&p typo

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/ListInstalledPkgs

    v1 v2  
    2323yb = yum.YumBase() 
    2424yb.conf.cache = 1 
    25 for pkg in sorted(yb.pkgSack.returnPackages()): 
     25for pkg in sorted(yb.rpmdb.returnPackages()): 
    2626    print pkg, pkg.repo 
    2727}}}