def list_existed_diff_packages(version_dir):
with cd(version_dir), hide('running', 'stdout'):
result = run('''( find ./ -mindepth 1 -maxdepth 1 -type f -print |grep --color=never -E '[0-9]+(\.[0-9]+){3}$' ) || echo "no_diff_package_found"''')
if result == "no_diff_package_found":
return []
else:
return [each.lstrip('./') for each in result.splitlines()]
评论列表
文章目录