#NEWLINE# def install_package( self , name , version ) : #NEWLINE# #INDENT# yb = yum . YumBase ( ) #NEWLINE# yb . doGenericSetup ( ) #NEWLINE# yb . doRepoSetup ( ) #NEWLINE# yb . doLock ( ) #NEWLINE# yb . install ( pattern = self ) #NEWLINE# yb . buildTransaction ( ) #NEWLINE# yb . processTransaction ( callback = DummyCallback ( ) ) #NEWLINE# yb . closeRpmDB ( ) #NEWLINE# yb . doUnlock ( )