Skip to content
Snippets Groups Projects
Commit b7191fda authored by James Ennis's avatar James Ennis Committed by Tristan Van Berkom
Browse files

pushreceive.py: Ensure there is a repopath

parent 60a29f68
No related branches found
No related tags found
1 merge request!490Expire artifacts in the remote artifact cache
......@@ -576,6 +576,9 @@ class OSTreeReceiver(object):
if self.repopath is None:
self.repo = OSTree.Repo.new_default()
self.repopath = self.repo.get_path().get_path()
# NOTE: OSTree.Repo.get_path() returns Gio.File
# Gio.File.get_path() returns a string of the pathway
else:
self.repo = OSTree.Repo.new(Gio.File.new_for_path(self.repopath))
self.repo.open(None)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment