Lines Matching refs:format

47         print('remote file {}.sha256 is not found, begin check SHASUMS256.txt'.format(check_url))
92 cmd = 'unzip -o {} -d {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
94 cmd = 'tar -xvzf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
96 cmd = 'tar -xvf {} -C {};echo 0 > {}'.format(src_file, dest_dir, mark_file_path)
107 progress.console.log('Requesting {}'.format(url))
111 progress.console.log("Failed to open {}, HTTPError: {}".format(url, e.code), style='red')
118 progress.console.log("Downloaded {}".format(local_file))
123 progress.console.log("Decompressing {}".format(local_file))
125 progress.console.log("Decompressed {}".format(local_file))
131 print('{}, download failed with three times retry, please check network status. Prebuilts download exit.'.format(local_file))
140 print('Requesting {}, please wait'.format(url))
144 print("Failed to open {}, HTTPError: {}".format(url, e.code))
148 print("Downloaded {}".format(local_file))
151 print("Decompressing {}, please wait".format(local_file))
153 print("Decompressed {}".format(local_file))
185 args.progress.console.log('{}, Sha256 markword check OK.'.format(huaweicloud_url), style='green')
187 print('{}, Sha256 markword check OK.'.format(huaweicloud_url))
189 _run_cmd(('rm -rf {}/{}/*.{}.mark').format(code_dir, unzip_dir, unzip_filename))
190 _run_cmd(('rm -rf {}/{}/{}').format(code_dir, unzip_dir, unzip_filename))
191 local_file = os.path.join(bin_dir, '{}.{}'.format(md5_huaweicloud_url, bin_file))
195 args.progress.console.log('{}, Sha256 check download OK.'.format(local_file), style='green')
197 print('{}, Sha256 check download OK. Start decompression, please wait'.format(local_file))
216 args.progress.console.log('{}, download and decompress completed'.format(tasks.get(task)),
219 print('{}, download and decompress completed'.format(tasks.get(task)))
224 os.environ['PATH'] = '{}/{}:{}'.format(args.code_dir, node_path, os.environ.get('PATH'))
227 skip_ssl_cmd = '{} config set strict-ssl false;'.format(npm)
231 npm_clean_cmd = '{} cache clean -f'.format(npm)
232 npm_package_lock_cmd = '{} config set package-lock true'.format(npm)
248 _run_cmd(('rm -rf {}'.format(node_modules_path)))
260 print("in dir:{}, executing:{}".format(full_code_path, ' '.join(cmd)))
263 raise Exception("{} not exist, it shouldn't happen, pls check...".format(full_code_path))
296 cmd = 'mv {}/*.mark {}'.format(dest_dir, tmp_dir)
312 _run_cmd('chmod 755 {} -R'.format(dest_dir))
333 install_dir = '{}/{}'.format(code_dir, config_info.get('install_dir'))
335 cmd = '{}/{}'.format(install_dir, script)
339 cmd = '{} --{}={}'.format(cmd, key, arg[key])
340 dest_dir = '{}/{}'.format(code_dir, config_info.get('destdir'))
341 cmd = '{} --destdir={}'.format(cmd, dest_dir)