* [PATCH] rootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE
@ 2016-01-17 11:15 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-01-17 11:15 UTC (permalink / raw)
To: openembedded-core
When RM_OLD_IMAGE is set, old manifest files should be removed
along with old image files and our QA tests expect this.
This patch ensures this happens.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 96d3051..970e9f3 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -219,6 +219,9 @@ python write_image_manifest () {
if manifest_name is not None and os.path.exists(manifest_name):
manifest_link = deploy_dir + "/" + link_name + ".manifest"
if os.path.exists(manifest_link):
+ if d.getVar('RM_OLD_IMAGE', True) == "1" and \
+ os.path.exists(os.path.realpath(manifest_link)):
+ os.remove(os.path.realpath(manifest_link))
os.remove(manifest_link)
os.symlink(os.path.basename(manifest_name), manifest_link)
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2016-01-17 11:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-17 11:15 [PATCH] rootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox