Skip to contentSkip to conversation

is 'SRC_URI_append += "file://appendtest.txt"' in layerappend.py deliberate?

DISCUSSION Robert P. J. Day 2 participants 2 messages Sep 2, 2017

lore
Share & tools
lore
#0 lore raw

just noticed in meta/lib/oeqa/selftest/cases/layerappend.py this
snippet:

////// start

    append = """

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " file://appendtest.txt" <--- first

sysroot_stage_all_append() {
        install -m 644 ${WORKDIR}/appendtest.txt ${SYSROOT_DESTDIR}/
}

"""

    append2 = """

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append += "file://appendtest.txt" <--- second
"""

////// end

is there some reason that SRC_URI_append is done correctly in that
first example, but in that weirdly superfluous way using "+=" in the second example?

rday

Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================
#1 lore raw
Quoted 20 lines · Robert P. J. Day

just noticed in meta/lib/oeqa/selftest/cases/layerappend.py this
snippet:

////// start

    append = """

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " file://appendtest.txt" <--- first

sysroot_stage_all_append() {
        install -m 644 ${WORKDIR}/appendtest.txt ${SYSROOT_DESTDIR}/
}

"""

    append2 = """

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

Quoted 8 lines

SRC_URI_append += "file://appendtest.txt" <--- second
"""

////// end

is there some reason that SRC_URI_append is done correctly in that
first example, but in that weirdly superfluous way using "+=" in the second example?

send a patch to fix it append += is usually not preferred.

Quoted 17 lines

rday

--

========================================================================
Robert P. J. Day Ottawa, Ontario, CANADA
http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday

========================================================================
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core