* [PATCH 1/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest
@ 2019-07-15 12:50 Mike Crowe
2019-07-15 12:51 ` [PATCH 2/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_test_data Mike Crowe
0 siblings, 1 reply; 2+ messages in thread
From: Mike Crowe @ 2019-07-15 12:50 UTC (permalink / raw)
To: openembedded-core; +Cc: Mike Crowe
Ensure that we don't create a symlink named ".manifest" if IMAGE_LINK_NAME
is empty.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
meta/classes/rootfs-postcommands.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index 89f8efd323..a2fe3dea2b 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -260,7 +260,7 @@ python write_image_manifest () {
with open(manifest_name, 'w+') as image_manifest:
image_manifest.write(format_pkg_list(pkgs, "ver"))
- if os.path.exists(manifest_name):
+ if os.path.exists(manifest_name) and link_name:
manifest_link = deploy_dir + "/" + link_name + ".manifest"
if os.path.lexists(manifest_link):
os.remove(manifest_link)
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 2/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_test_data
2019-07-15 12:50 [PATCH 1/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest Mike Crowe
@ 2019-07-15 12:51 ` Mike Crowe
0 siblings, 0 replies; 2+ messages in thread
From: Mike Crowe @ 2019-07-15 12:51 UTC (permalink / raw)
To: openembedded-core; +Cc: Mike Crowe, Mike Crowe
From: Mike Crowe <mcrowe@mcrowe.com>
Ensure that we don't create an image test data symlink named
".testdata.json" when IMAGE_LINK_NAME is empty.
Signed-off-by: Mike Crowe <mac@mcrowe.com>
---
meta/classes/rootfs-postcommands.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/rootfs-postcommands.bbclass b/meta/classes/rootfs-postcommands.bbclass
index a2fe3dea2b..6cec23ef1a 100644
--- a/meta/classes/rootfs-postcommands.bbclass
+++ b/meta/classes/rootfs-postcommands.bbclass
@@ -328,7 +328,7 @@ python write_image_test_data() {
searchString = "%s/"%(d.getVar("TOPDIR")).replace("//","/")
export2json(d, testdata_name, searchString=searchString, replaceString="")
- if os.path.exists(testdata_name):
+ if os.path.exists(testdata_name) and link_name:
testdata_link = os.path.join(deploy_dir, "%s.testdata.json" % link_name)
if os.path.lexists(testdata_link):
os.remove(testdata_link)
--
2.20.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-15 12:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-15 12:50 [PATCH 1/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_manifest Mike Crowe
2019-07-15 12:51 ` [PATCH 2/2] rootfs-postcommands: Cope with empty IMAGE_LINK_NAME in write_image_test_data Mike Crowe
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.