#NEWLINE# def package_instance( self , instance ) : #NEWLINE# #INDENT# with sh . remove_before ( self . rpmbuild_dir ) : #NEWLINE# #INDENT# self . _create_rpmbuild_subdirs ( ) #NEWLINE# if ( instance . name in [ 'general' ] ) : #NEWLINE# #INDENT# self . _build_dependencies ( ) #NEWLINE# self . _record_srpm_files ( self . _move_srpms ( 'anvil-deps' ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# app_dir = instance . get_option ( 'app_dir' ) #NEWLINE# if sh . isdir ( app_dir ) : #NEWLINE# #INDENT# self . _build_openstack_package ( instance ) #NEWLINE# self . _record_srpm_files ( self . _move_srpms ( 'anvil' ) )