(self, nvi_host_dir_list, nvi_cont_dir)
return False
Container has files from previous nvidia installation
Container has files from previous nvidia installation
Container has files from previous nvidia installation
def _installation_exists(self, nvi_host_dir_list, nvi_cont_dir):
        """Container has files from previous nvidia installation"""
        try:
            for nvi_host_dir in nvi_host_dir_list:
                lib_list = self._get_nvidia_libs(nvi_host_dir)
                self._files_exist(nvi_cont_dir, lib_list)
            self._files_exist("/etc", Config.conf['nvi_etc_list'])
            self._files_exist("/usr/bin", Config.conf['nvi_bin_list'])
            Msg().out("Info: Cont, has files from previous nvidia install")
        except OSError:
            return True
        return False
def _installation_exists ( self , nvi_host_dir_list , nvi_cont_dir ) : try : for nvi_host_dir in nvi_host_dir_list : lib_list = self . _get_nvidia_libs ( nvi_host_dir ) self . _files_exist ( nvi_cont_dir , lib_list ) self . _files_exist ( "/etc" , Config . conf [ 'nvi_etc_list' ] ) self . _files_exist ( "/usr/bin" , Config . conf [ 'nvi_bin_list' ] ) Msg ( ) . out ( "Info: Cont, has files from previous nvidia install" ) except OSError : return True return False