You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by tv...@apache.org on 2021/02/04 07:12:04 UTC
[buildstream] 06/15: pushreceive.py: Ensure there is a repopath
This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch jennis/136-clean-remote-cache
in repository https://gitbox.apache.org/repos/asf/buildstream.git
commit ac22a29e609da6262453f455777ea422769a647f
Author: James Ennis <ja...@codethink.com>
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 777065e..75a65e1 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)