#NEWLINE# def _read_install_mask( self , mask_name ) : #NEWLINE# #INDENT# mask_path = os . path . join ( self . path , ( mask_name + '.mask' ) ) #NEWLINE# if ( not os . path . exists ( mask_path ) ) : #NEWLINE# #INDENT# return list ( ) #NEWLINE# #UNINDENT# with open ( mask_path , 'r' ) as fp : #NEWLINE# #INDENT# mask = fp . readlines ( ) #NEWLINE# mask = [ x . strip ( ) for x in mask ] #NEWLINE# mask = [ x for x in mask if ( x != '' ) ] #NEWLINE# mask = [ x for x in mask if ( not x . startswith ( '#' ) ) ] #NEWLINE# for line in mask : #NEWLINE# #INDENT# if ( not line . startswith ( ( 'include ' , 'exclude ' ) ) ) : #NEWLINE# #INDENT# mess = ( 'Bad mask in %s\n' % mask_path ) #NEWLINE# mess += ( line + '\n' ) #NEWLINE# mess += "line should start with 'include' or 'exclude'" #NEWLINE# raise qisys . error . Error ( mess ) #NEWLINE# #UNINDENT# #UNINDENT# return mask