repo: Delete a remote's keyring when deleting a remote

This commit is contained in:
Matthew Barnes 2015-05-01 10:06:24 -04:00
parent 56d684173d
commit 0c92d7a8d0

View File

@ -915,6 +915,10 @@ impl_repo_remote_delete (OstreeRepo *self,
}
}
/* Delete the remote's keyring file, if it exists. */
if (!ot_ensure_unlinked_at (self->repo_dir_fd, remote->keyring, error))
goto out;
ost_repo_remove_remote (self, remote);
ret = TRUE;