Changes between Version 2 and Version 3 of YumCodeSnippet/GetReleaseVersion

Show
Ignore:
Author:
james (IP: 65.172.155.230)
Timestamp:
10/01/10 15:28:07 (6 years ago)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • YumCodeSnippet/GetReleaseVersion

    v2 v3  
    66pkg_provide = "redhat-release" 
    77import rpm 
    8 import rpmUtils.transaction 
    98 
    10 ts = rpmUtils.transaction.initReadOnlyTransaction() 
    11 ts.pushVSFlags(~(rpm._RPMVSF_NOSIGNATURES|rpm._RPMVSF_NODIGESTS)) 
    12 # This can throw exceptions, have fun... :) 
     9ts = rpm.TransactionSet() 
     10# This can throw exceptions, depending on rpm version, have fun... :) 
    1311idx = ts.dbMatch('provides', pkg_provide) 
    1412if idx.count() == 0: