cmd = ["git", name.replace('_', '-')] + list(args)
with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE if suppress_stderr else None) as p:
(stdout, stderr) = p.communicate()
if p.returncode != 0:
raise Exception("Running %s returned non-zero exit code %d" % (str(cmd), p.returncode))
stdout = stdout.decode('utf-8').strip('\n')
cmd = ["git", name.replace('_', '-')] + list(args)
with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE if suppress_stderr else None) as p:
(stdout, stderr) = p.communicate()
if p.returncode != 0:
raise Exception("Running %s returned non-zero exit code %d" % (str(cmd), p.returncode))
stdout = stdout.decode('utf-8').strip('\n')
git.submodule("update", "--init", "--recursive", "--rebase")
# done
print("...done", end=' ')
git.submodule("update", "--init", "--recursive", "--rebase")
# done
print("...done", end=' ')
return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)
def checkVersions(self):
self.update(mode = MODE_FETCH)
return v[len(get_non_digit_prefix(v)):] # remove the non-digit prefix from v (so that it starts with a number)
def checkVersions(self):
self.update(mode = MODE_FETCH)
tags = [t for t in tags if get_non_digit_prefix(t) == get_non_digit_prefix(currentVersion) and natural_sort_key(t) > natural_sort_key(currentVersion)]
if not tags: return
tags.sort(key = natural_sort_key)
tags = [t for t in tags if get_non_digit_prefix(t) == get_non_digit_prefix(currentVersion) and natural_sort_key(t) > natural_sort_key(currentVersion)]
if not tags: return
tags.sort(key = natural_sort_key)