#NEWLINE# def populate_ufsroot( ) : #NEWLINE# #INDENT# info ( 'Populating UFS root' ) #NEWLINE# for i in purge_dirs : #NEWLINE# #INDENT# for name in glob ( '${INSTUFS_DESTDIR}${i}/*' ) : #NEWLINE# #INDENT# name = os . path . basename ( p ) #NEWLINE# if ( e ( '${i}/${name}' ) in files_to_preserve ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# sh ( 'chflags -f 0 ${INSTUFS_DESTDIR}${i}/${name}' ) #NEWLINE# sh ( 'rm -f ${INSTUFS_DESTDIR}${i}/${name}' ) #NEWLINE# #UNINDENT# #UNINDENT# for ( k , v ) in symlinks . items ( ) : #NEWLINE# #INDENT# p = os . path . join ( '/rescue' , k ) #NEWLINE# sh ( 'ln -s ${p} ${INSTUFS_DESTDIR}${v}' )