Skip to content

Commit

Permalink
move cleanup code to the end
Browse files Browse the repository at this point in the history
  • Loading branch information
baentsch committed Oct 26, 2023
1 parent f2274ff commit deb79ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/copy_from_upstream/copy_from_upstream.py
Original file line number Diff line number Diff line change
Expand Up @@ -612,10 +612,6 @@ def copy_from_upstream():
with open(os.path.join(os.environ['LIBOQS_DIR'], 'tests', 'KATs', t, 'kats.json'), "w") as f:
json.dump(kats[t], f, indent=2, sort_keys=True)

# TBD: What's the purpose of this rmtree? It destroys patches to the documentation
# if not keepdata:
# shutil.rmtree('repos')

update_upstream_alg_docs.do_it(os.environ['LIBOQS_DIR'])

sys.path.insert(1, os.path.join(os.environ['LIBOQS_DIR'], 'scripts'))
Expand All @@ -624,6 +620,10 @@ def copy_from_upstream():
update_docs_from_yaml.do_it(os.environ['LIBOQS_DIR'])
update_cbom.update_cbom_if_algs_not_changed(os.environ['LIBOQS_DIR'], "git")

if not keepdata:
shutil.rmtree('repos')


def verify_from_upstream():
instructions = load_instructions()
basedir = "verify_from_upstream"
Expand Down

0 comments on commit deb79ef

Please sign in to comment.