summaryrefslogtreecommitdiff
path: root/buildstream/_artifactcache/pushreceive.py
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/_artifactcache/pushreceive.py')
-rw-r--r--buildstream/_artifactcache/pushreceive.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py
index ecedc6657..209aef620 100644
--- a/buildstream/_artifactcache/pushreceive.py
+++ b/buildstream/_artifactcache/pushreceive.py
@@ -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)