#NEWLINE# def _setup_deb_general( ) : #NEWLINE# #INDENT# 'Shared settings for different debian based/derived distributions.\n    ' #NEWLINE# env . logger . debug ( 'Debian-shared setup' ) #NEWLINE# env . sources_file = '/etc/apt/sources.list.d/cloudbiolinux.list' #NEWLINE# env . global_sources_file = '/etc/apt/sources.list' #NEWLINE# env . apt_preferences_file = '/etc/apt/preferences' #NEWLINE# if ( not hasattr ( env , 'python_version_ext' ) ) : #NEWLINE# #INDENT# env . python_version_ext = '' #NEWLINE# #UNINDENT# if ( not hasattr ( env , 'ruby_version_ext' ) ) : #NEWLINE# #INDENT# env . ruby_version_ext = '1.9.1' #NEWLINE# #UNINDENT# if ( not env . has_key ( 'java_home' ) ) : #NEWLINE# #INDENT# java_home = '/usr/lib/jvm/java-7-openjdk-amd64' #NEWLINE# with quiet ( ) : #NEWLINE# #INDENT# java_info = env . safe_run_output ( 'update-alternatives --display java' ) #NEWLINE# #UNINDENT# for line in java_info . split ( '\n' ) : #NEWLINE# #INDENT# if line . strip ( ) . startswith ( 'link currently points to' ) : #NEWLINE# #INDENT# java_home = line . split ( ) [ ( - 1 ) ] . strip ( ) #NEWLINE# java_home = java_home . replace ( '/jre/bin/java' , '' ) #NEWLINE# #UNINDENT# #UNINDENT# env . java_home = line #NEWLINE# #UNINDENT# shared_sources = [ 'deb http://download.virtualbox.org/virtualbox/debian %s contrib' ] #NEWLINE# return shared_sources