Show More
@@ -961,6 +961,15 b' def supportedversions(repo):' | |||
|
961 | 961 | versions.discard('03') |
|
962 | 962 | return versions |
|
963 | 963 | |
|
964 | def safeversion(repo): | |
|
965 | # Finds the smallest version that it's safe to assume clients of the repo | |
|
966 | # will support. | |
|
967 | versions = supportedversions(repo) | |
|
968 | if 'generaldelta' in repo.requirements: | |
|
969 | versions.discard('01') | |
|
970 | assert versions | |
|
971 | return min(versions) | |
|
972 | ||
|
964 | 973 | def getbundler(version, repo, bundlecaps=None): |
|
965 | 974 | assert version in supportedversions(repo) |
|
966 | 975 | return _packermap[version][0](repo, bundlecaps) |
General Comments 0
You need to be logged in to leave comments.
Login now