diff options
-rw-r--r-- | meta/classes/package.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index d1e9138c66..0fe9576b4d 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
@@ -368,7 +368,8 @@ def append_source_info(file, sourcefile, d, fatal=True): | |||
368 | # is still assuming that. | 368 | # is still assuming that. |
369 | debuglistoutput = '\0'.join(debugsources) + '\0' | 369 | debuglistoutput = '\0'.join(debugsources) + '\0' |
370 | lf = bb.utils.lockfile(sourcefile + ".lock") | 370 | lf = bb.utils.lockfile(sourcefile + ".lock") |
371 | open(sourcefile, 'a').write(debuglistoutput) | 371 | with open(sourcefile, 'a') as sf: |
372 | sf.write(debuglistoutput) | ||
372 | bb.utils.unlockfile(lf) | 373 | bb.utils.unlockfile(lf) |
373 | 374 | ||
374 | 375 | ||