summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-04-18 12:42:52 +0100
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2018-06-07 16:35:51 -0400
commitb7191fda9eb66229f7fdb62e7dd9e9b448270615 (patch)
treea22e5e6f9743cf85125fba581c9714952062d0f6
parent60a29f687c520fd7b17f4b98ab0a033c41e31fc5 (diff)
downloadbuildstream-b7191fda9eb66229f7fdb62e7dd9e9b448270615.tar.gz
pushreceive.py: Ensure there is a repopath
-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)