diff options
Diffstat (limited to 'buildstream/_ostree.py')
-rw-r--r-- | buildstream/_ostree.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/buildstream/_ostree.py b/buildstream/_ostree.py index ab62f6c7d..dfa7567de 100644 --- a/buildstream/_ostree.py +++ b/buildstream/_ostree.py @@ -516,23 +516,3 @@ def configure_remote(repo, remote, url, key_url=None): repo.remote_gpg_import(remote, stream, None, 0, None) except GLib.GError as e: raise OSTreeError("Failed to add gpg key from url '{}': {}".format(key_url, e.message)) from e - - -# list_remote_refs(): -# -# Fetch list of refs from a remote. -# -# Args: -# repo (OSTree.Repo): The repo -# remote (str): An optional remote name, defaults to 'origin' -# -# Returns: -# (dict): A dict of refs to checksums. -# -def list_remote_refs(repo, remote="origin"): - try: - _, refs = repo.remote_list_refs(remote) - return refs - except GLib.GError as e: - (_, remote_url) = repo.remote_get_url(remote) - raise OSTreeError(message="{} when attempting to fetch from {}".format(e.message, remote_url)) from e |