]> code.ossystems Code Review - openembedded-core.git/commitdiff
opkg: solve inconsistency of using different lists directories
authorAlejandro Hernandez <alejandro.hernandez@linux.intel.com>
Fri, 31 Jul 2015 18:59:37 +0000 (18:59 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Aug 2015 23:37:01 +0000 (16:37 -0700)
Default behavior of opkg was to use ${OPKGLIBDIR}/opkg/lists;
but in our recipe we modify it to ${OPKGLIBDIR}/opkg/${OPKGLIBDIR}/opkg/,
when appending package-management to IMAGE_FEATURES these lists are
populated during build time (using the default directory),
but since our config was different these populated lists were never used at runtime,
this patch solves this inconsistency by using default behavior for both build time and runtime.

[YOCTO #6966]

(From OE-Core rev: a71b29ffc514892ca394fc8de275294b910586f0)

Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/opkg/opkg_0.2.4.bb

index 23a32e61cd4c3d3f490c39f4cc31ad556890e237..254ecfcaa20a629c341be446c48f3bfc1a10c9d7 100644 (file)
@@ -49,7 +49,7 @@ do_configure_prepend() {
 do_install_append () {
        install -d ${D}${sysconfdir}/opkg
        install -m 0644 ${WORKDIR}/opkg.conf ${D}${sysconfdir}/opkg/opkg.conf
-       echo "option lists_dir ${OPKGLIBDIR}/opkg" >>${D}${sysconfdir}/opkg/opkg.conf
+       echo "option lists_dir ${OPKGLIBDIR}/opkg/lists" >>${D}${sysconfdir}/opkg/opkg.conf
 
        # We need to create the lock directory
        install -d ${D}${OPKGLIBDIR}/opkg