Skip to content

Commit 379d333

Browse files
author
Jussi Kukkonen
committed
Remove unnecessary directory check at startup
* Loading root.json will fail just as descriptively * As long as Bundle doesn't implement bootstrapping the local repo, there's also no need to create missing directories Signed-off-by: Jussi Kukkonen <jkukkonen@vmware.com>
1 parent 36f34ce commit 379d333

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

tuf/client_rework/metadata_bundle.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,10 +134,6 @@ def __init__(self, repository_path: str):
134134
self._bundle = {} # type: Dict[str: Metadata]
135135
self.reference_time = None
136136

137-
if not os.path.exists(self._path):
138-
# TODO try to create dir instead?
139-
raise exceptions.RepositoryError("Repository does not exist")
140-
141137
# Load and validate the local root metadata
142138
# Valid root metadata is required
143139
logger.debug("Loading local root")

0 commit comments

Comments
 (0)