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.bbclass5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index ab8ca6e215..6491bad204 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -235,10 +235,11 @@ def sstate_install(ss, d):
235 bb.fatal("If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.") 235 bb.fatal("If the above message is too much, the simpler version is you're advised to wipe out tmp and rebuild (reusing sstate is fine). That will likely fix things in most (but not all) cases.")
236 236
237 # Write out the manifest 237 # Write out the manifest
238 f = open(manifest, "w") 238 f = open(manifest, "w", encoding="utf-8", errors="surrogateescape")
239 for file in sharedfiles: 239 for file in sharedfiles:
240 f.write(file + "\n") 240 f.write(file + "\n")
241 241
242
242 # We want to ensure that directories appear at the end of the manifest 243 # We want to ensure that directories appear at the end of the manifest
243 # so that when we test to see if they should be deleted any contents 244 # so that when we test to see if they should be deleted any contents
244 # added by the task will have been removed first. 245 # added by the task will have been removed first.
@@ -382,7 +383,7 @@ def sstate_clean_cachefiles(d):
382def sstate_clean_manifest(manifest, d): 383def sstate_clean_manifest(manifest, d):
383 import oe.path 384 import oe.path
384 385
385 mfile = open(manifest) 386 mfile = open(manifest, encoding="utf-8")
386 entries = mfile.readlines() 387 entries = mfile.readlines()
387 mfile.close() 388 mfile.close()
388 389