#NEWLINE# def _init_yum( self , baseurl = None , **kwargs ) : #NEWLINE# #INDENT# cwd = os . getcwd ( ) #NEWLINE# yum . config . StartupConf . pluginpath = yum . config . StartupConf . pluginconfpath = yum . config . ListOption ( [ cwd ] ) #NEWLINE# yumbase = yum . YumBase ( ) #NEWLINE# yumbase . preconf . disabled_plugins = '*' #NEWLINE# yumbase . preconf . enabled_plugins = [ 's3iam' ] #NEWLINE# yumbase . preconf . debuglevel = 0 #NEWLINE# yumbase . conf . cachedir = os . path . join ( self . tmpdir , '_cache' ) #NEWLINE# yumbase . repos . disableRepo ( '*' ) #NEWLINE# yumbase . add_enable_repo ( 's3test' , [ ( baseurl or self . baseurl ) ] , s3_enabled = True , _async = True , ** kwargs ) #NEWLINE# return yumbase