aboutsummaryrefslogtreecommitdiff
path: root/https-sync-repos.py
diff options
context:
space:
mode:
authorRob Austein <sra@hactrn.net>2020-03-22 17:27:24 +0000
committerRob Austein <sra@hactrn.net>2020-03-22 17:27:24 +0000
commit6e7acd77707c16aa79cec22238ef944682d9184b (patch)
treedbfce74eca04e08a908631a1976194c26702d79b /https-sync-repos.py
parent34ecad1d04c6b3add8077315bac1f954002fb7da (diff)
Python 2 -> 3
Diffstat (limited to 'https-sync-repos.py')
-rwxr-xr-xhttps-sync-repos.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/https-sync-repos.py b/https-sync-repos.py
index 4b4c735..13766e3 100755
--- a/https-sync-repos.py
+++ b/https-sync-repos.py
@@ -23,16 +23,16 @@ for elt in ElementTree(file = urlopen(trac_page)).iter("{http://www.w3.org/1999/
url = elt.text
repo = url[len(head):-len(tail)]
pull = isdir(repo)
- print
- print url
+ print("")
+ print(url)
try:
if pull:
check_call(("git", "fetch", "--all", "--prune"), cwd = repo)
- check_call(("git", "pull"), cwd = repo)
+ check_call(("git", "merge"), cwd = repo)
else:
check_call(("git", "clone", url, repo))
except:
- print "** Error", "pulling" if pull else "cloning", repo
+ print("** Error", "pulling" if pull else "cloning", repo)
errs += 1
exit(errs)