Skip to contentSkip to conversation

image: Ensure manifests end with a newline

PATCH New Richard Purdie 1 participant 1 message Mar 24, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image: Ensure manifests end with a newline

Manifests should end with a newline character but don't currently. This is the easiest fix for now, the alternative would be a rewrite of the internal code which is something to consider in due course.

[YOCTO #7427]

meta/classes/image.bbclass +1 -0
index 89eb5f3..cd17837 100644
@@ -396,6 +396,7 @@ python write_image_manifest () {
     from oe.rootfs import image_list_installed_packages
     with open(d.getVar('IMAGE_MANIFEST', True), 'w+') as image_manifest:
         image_manifest.write(image_list_installed_packages(d, 'ver'))
+        image_manifest.write("\n")
 }
 
 # Can be use to create /etc/timestamp during image construction to give a reasonably