mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-16 08:38:26 +00:00
lean up the publish process a bit
This commit is contained in:
parent
87d3a32b3d
commit
361fc084bd
1 changed files with 6 additions and 2 deletions
|
|
@ -318,8 +318,12 @@ def main():
|
|||
for [crate, path] in cratelist:
|
||||
print("Publishing {} in {}".format(crate, path))
|
||||
try:
|
||||
subprocess.run(cmd, cwd=path, check=True)
|
||||
except subprocess.CalledProcessError:
|
||||
subprocess.run(cmd, cwd=path, check=True, capture_output=True, encoding='utf-8')
|
||||
except subprocess.CalledProcessError as err:
|
||||
if 'already uploaded' in err.stderr:
|
||||
print(" Already uploaded, skipping to next module...")
|
||||
continue
|
||||
|
||||
print("Process failed, waiting for crates.io to update and retrying...")
|
||||
time.sleep(20)
|
||||
# just try running it again
|
||||
|
|
|
|||
Loading…
Reference in a new issue