Fixes #414
This commit is contained in:
+2
-2
@@ -129,11 +129,11 @@ class PisiBuild:
|
|||||||
self.srcDir = None
|
self.srcDir = None
|
||||||
|
|
||||||
def set_state(self, state):
|
def set_state(self, state):
|
||||||
stateFile = os.path.join(self.srcDir, "pisiBuildState")
|
stateFile = os.path.join(self.bctx.pkg_work_dir(), "pisiBuildState")
|
||||||
open(stateFile, "w").write(state)
|
open(stateFile, "w").write(state)
|
||||||
|
|
||||||
def get_state(self):
|
def get_state(self):
|
||||||
stateFile = os.path.join(self.srcDir, "pisiBuildState")
|
stateFile = os.path.join(self.bctx.pkg_work_dir(), "pisiBuildState")
|
||||||
if not os.path.exists(stateFile): # no state
|
if not os.path.exists(stateFile): # no state
|
||||||
return None
|
return None
|
||||||
return open(stateFile, "r").read()
|
return open(stateFile, "r").read()
|
||||||
|
|||||||
Reference in New Issue
Block a user