image.bbclass: only insert feed uris if ONLINE_PACKAGE_MANAGEMENT
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Thu, 27 Jan 2011 02:13:31 +0000 (02:13 +0000)
committerTom Rini <tom_rini@mentor.com>
Sat, 12 Feb 2011 15:18:09 +0000 (08:18 -0700)
Previously if ONLINE_PACKAGE_MANAGEMENT="none" but one had
FEED_DEPLOYDIR_BASE_URI set, it tried to create files in a non-existing
dir in the image (there is no /etc/opkg/ if no online package management
is requested).

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Signed-off-by: Tom Rini <tom_rini@mentor.com>
classes/image.bbclass

index db13dd0..9765442 100644 (file)
@@ -172,7 +172,8 @@ fakeroot do_rootfs () {
 
        rootfs_${IMAGE_PKGTYPE}_do_rootfs
 
-       insert_feed_uris
+       [ "${ONLINE_PACKAGE_MANAGEMENT}" != "none" ] && \
+               insert_feed_uris
 
        ${IMAGE_PREPROCESS_COMMAND}