mirror of
https://git.yoctoproject.org/poky
synced 2026-04-05 08:02:25 +02:00
rootfs-postcommands: Ensure license manifests respect RM_OLD_IMAGE
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. (From OE-Core rev: fc951851a0e172641e2f24a4edce87ca2eb5cecd) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user