summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 02594a7d33..003763b412 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -146,6 +146,8 @@ def sstate_install(ss, d):
146 mastermanifest = d.getVar("SSTATE_MASTERMANIFEST", True) 146 mastermanifest = d.getVar("SSTATE_MASTERMANIFEST", True)
147 whitelist = d.getVar("SSTATE_DUPWHITELIST", True) 147 whitelist = d.getVar("SSTATE_DUPWHITELIST", True)
148 lock = bb.utils.lockfile(mastermanifest + ".lock") 148 lock = bb.utils.lockfile(mastermanifest + ".lock")
149 if not os.path.exists(mastermanifest):
150 open(mastermanifest, "w").close()
149 fileslist = [line.strip() for line in open(mastermanifest)] 151 fileslist = [line.strip() for line in open(mastermanifest)]
150 bb.utils.unlockfile(lock) 152 bb.utils.unlockfile(lock)
151 match = [] 153 match = []
@@ -302,6 +304,8 @@ def sstate_clean_manifest(manifest, d):
302 # Remove the entries from the master manifest 304 # Remove the entries from the master manifest
303 mastermanifest = d.getVar("SSTATE_MASTERMANIFEST", True) 305 mastermanifest = d.getVar("SSTATE_MASTERMANIFEST", True)
304 lock = bb.utils.lockfile(mastermanifest + ".lock") 306 lock = bb.utils.lockfile(mastermanifest + ".lock")
307 if not os.path.exists(mastermanifest):
308 open(mastermanifest, "w").close()
305 mf = open(mastermanifest + ".new", "w") 309 mf = open(mastermanifest + ".new", "w")
306 for line in open(mastermanifest, "r"): 310 for line in open(mastermanifest, "r"):
307 if not line or line in entries: 311 if not line or line in entries: