(repo, version)
| 1158 | |
| 1159 | |
| 1160 | def get_remote_version_availability(repo, version): |
| 1161 | output = run_shell_command( |
| 1162 | """git ls-remote --refs --tags "https://github.com/{0}.git" | |
| 1163 | cut -d '/' -f 3 | |
| 1164 | awk {1} | sort --version-sort | sed 's/_$//'""".format( |
| 1165 | repo, |
| 1166 | "'{ if ($1 ~ /-/) print; else print $0\"_\" ;}'", |
| 1167 | ) |
| 1168 | ) |
| 1169 | if version in output: |
| 1170 | return True |
| 1171 | return False |
| 1172 | |
| 1173 | |
| 1174 | class Compat: |
no test coverage detected