]> code.ossystems Code Review - openembedded-core.git/commitdiff
utility-tasks/distrodata: Add recideptask flag for fetchall/checkuriall
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 19 Jun 2013 13:05:17 +0000 (13:05 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Jun 2013 12:10:08 +0000 (13:10 +0100)
See the bitbake commit adding the recideptask flag for details of the
problem but in summary, we weren't seeing the [depends] of tasks like
do_rootfs being taking into account for fetchall. This was leading
to not all sources being fetched and this is the OE-Core part of the
fix for this problem.

BB_DEFAULT_TASK is the default task used since this is the one that
most commands would end up targeting and is how users expect the command
to behave.

[YOCTO #4597]

(From OE-Core rev: abf468963a087244887384122fd5202909e7f118)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/distrodata.bbclass
meta/classes/prexport.bbclass
meta/classes/utility-tasks.bbclass

index 907f78dc1c0606b10e500f56947578dedf15df87..be95b1ce38132a38eb4f3ca6b0a1ea58029f837d 100644 (file)
@@ -190,6 +190,7 @@ python do_distrodata() {
 
 addtask distrodataall after do_distrodata
 do_distrodataall[recrdeptask] = "do_distrodataall do_distrodata"
+do_distrodataall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_distrodataall[nostamp] = "1"
 do_distrodataall() {
         :
@@ -787,6 +788,7 @@ python do_checkpkg() {
 
 addtask checkpkgall after do_checkpkg
 do_checkpkgall[recrdeptask] = "do_checkpkgall do_checkpkg"
+do_checkpkgall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_checkpkgall[nostamp] = "1"
 do_checkpkgall() {
         :
@@ -829,6 +831,7 @@ python do_distro_check() {
 
 addtask distro_checkall after do_distro_check
 do_distro_checkall[recrdeptask] = "do_distro_checkall do_distro_check"
+do_distro_checkall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_distro_checkall[nostamp] = "1"
 do_distro_checkall() {
         :
@@ -877,6 +880,7 @@ python do_checklicense() {
 
 addtask checklicenseall after do_checklicense
 do_checklicenseall[recrdeptask] = "do_checklicenseall do_checklicense"
+do_checklicenseall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_checklicenseall[nostamp] = "1"
 do_checklicenseall() {
         :
index 16c4bf2f23705beece0c8fbfbf1ceecb44b8357c..5a1cb33c6a0ff1d28fe090d03821bb3f532c5d4d 100644 (file)
@@ -55,4 +55,4 @@ python prexport_handler () {
 }
 
 addhandler prexport_handler
-prexport_handler bb.event.RecipeParsed bb.event.ParseStarted bb.event.ParseCompleted"
+prexport_handler[eventmask] = "bb.event.RecipeParsed bb.event.ParseStarted bb.event.ParseCompleted"
index bb26eb7e7eeedf369d065515685877e232649a30..507e0f1c94606ee2b81eed96acb0ff8a1f471486 100644 (file)
@@ -48,6 +48,7 @@ python do_checkuri() {
 
 addtask checkuriall after do_checkuri
 do_checkuriall[recrdeptask] = "do_checkuriall do_checkuri"
+do_checkuriall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_checkuriall[nostamp] = "1"
 do_checkuriall() {
        :
@@ -55,6 +56,7 @@ do_checkuriall() {
 
 addtask fetchall after do_fetch
 do_fetchall[recrdeptask] = "do_fetchall do_fetch"
+do_fetchall[recideptask] = "do_${BB_DEFAULT_TASK}"
 do_fetchall() {
        :
 }