summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--subcmds/sync.py17
1 files changed, 4 insertions, 13 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index eda95f96..818f7c8a 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -1086,20 +1086,11 @@ def _VerifyTag(project):
1086 env['GNUPGHOME'] = gpg_dir 1086 env['GNUPGHOME'] = gpg_dir
1087 1087
1088 cmd = [GIT, 'tag', '-v', cur] 1088 cmd = [GIT, 'tag', '-v', cur]
1089 proc = subprocess.Popen(cmd, 1089 result = subprocess.run(cmd, stdout=subprocess.PIPE, stderr=subprocess.STDOUT,
1090 stdout=subprocess.PIPE, 1090 env=env, check=False)
1091 stderr=subprocess.PIPE, 1091 if result.returncode:
1092 env=env)
1093 out = proc.stdout.read()
1094 proc.stdout.close()
1095
1096 err = proc.stderr.read()
1097 proc.stderr.close()
1098
1099 if proc.wait() != 0:
1100 print(file=sys.stderr) 1092 print(file=sys.stderr)
1101 print(out, file=sys.stderr) 1093 print(result.stdout, file=sys.stderr)
1102 print(err, file=sys.stderr)
1103 print(file=sys.stderr) 1094 print(file=sys.stderr)
1104 return False 1095 return False
1105 return True 1096 return True