Skip to content

Commit

Permalink
tuf: More stub work
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw committed Mar 18, 2020
1 parent f55606b commit 79c1e82
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion warehouse/tuf/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def add_target(task, request, file):

with utils.RepoLock(r):
fileinfo = utils.make_fileinfo(file)
repository = utils.open_repository()
repository = utils.open_repository(request)

repository.add_target_to_bin(file.path, fileinfo=fileinfo)

Expand Down
4 changes: 4 additions & 0 deletions warehouse/tuf/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ def make_fileinfo(file, custom=None):
return fileinfo


def open_repository(request):
pass


class RepoLock:
"""
Supplies a blocking lock for TUF repository operations.
Expand Down

0 comments on commit 79c1e82

Please sign in to comment.