Address comments on 2e45bf637a
This commit is contained in:
@@ -66,11 +66,11 @@ class DownloadError(SubprocMessage):
|
||||
class Success(SubprocMessage):
|
||||
"""Sent when an operation finished sucessfully."""
|
||||
|
||||
class Result(SubprocMessage):
|
||||
"""Sent when an operation returns data to be used on the parent process."""
|
||||
class RepositoryResult(SubprocMessage):
|
||||
"""Sent when an operation returns a repository to be used on the parent process."""
|
||||
|
||||
def __init__(self, data):
|
||||
self.data = data
|
||||
def __init__(self, repository: dict):
|
||||
self.repository = repository
|
||||
|
||||
class Aborted(SubprocMessage):
|
||||
"""Sent as response to Abort message."""
|
||||
@@ -489,7 +489,10 @@ def refresh(pipe_to_blender, storage_path: pathlib.Path, repository_url: str):
|
||||
return
|
||||
|
||||
repo.to_file(repo_path) # TODO: this always writes even if repo wasn't changed
|
||||
pipe_to_blender.send(Result(repo.to_dict(sort=True)))
|
||||
pipe_to_blender.send(RepositoryResult(repo.to_dict(sort=True)))
|
||||
|
||||
def load(pipe_to_blender, storage_path: pathlib.Path):
|
||||
"""Reads the stored repository"""
|
||||
|
||||
def debug_hang():
|
||||
"""Hangs for an hour. For testing purposes only."""
|
||||
|
Reference in New Issue
Block a user