diff options
author | James Ennis <james.ennis@codethink.com> | 2018-04-18 12:42:52 +0100 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2018-06-07 16:35:51 -0400 |
commit | b7191fda9eb66229f7fdb62e7dd9e9b448270615 (patch) | |
tree | a22e5e6f9743cf85125fba581c9714952062d0f6 | |
parent | 60a29f687c520fd7b17f4b98ab0a033c41e31fc5 (diff) | |
download | buildstream-b7191fda9eb66229f7fdb62e7dd9e9b448270615.tar.gz |
pushreceive.py: Ensure there is a repopath
-rw-r--r-- | buildstream/_artifactcache/pushreceive.py | 3 |
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) |