This is an automated email from the ASF dual-hosted git repository. tvb pushed a commit to branch jennis/alternative_remote_expiry in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit 62343da07bf2be74ebcec1dcdcc7d03ae9bce3bf Author: James Ennis <[email protected]> AuthorDate: Wed Apr 18 12:42:52 2018 +0100 pushreceive.py: Ensure there is a repopath --- buildstream/_artifactcache/pushreceive.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildstream/_artifactcache/pushreceive.py b/buildstream/_artifactcache/pushreceive.py index ecedc66..209aef6 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)
