(args: argparse.Namespace)
| 1971 | destination_root = staged_roots[final_root] |
| 1972 | final_root.parent.mkdir(parents=True, exist_ok=True) |
| 1973 | destination_root.rename(final_root) |
| 1974 | return package_root |
| 1975 | except Exception: |
| 1976 | shutil.rmtree(staging_bundle, ignore_errors=True) |
| 1977 | raise |
| 1978 | finally: |
| 1979 | try: |
| 1980 | if staging_root.exists() and not any(staging_root.iterdir()): |
| 1981 | staging_root.rmdir() |
no test coverage detected