rootfs_ipk.bbclass: move rootfs postprocess command
authorChris Conroy <Chris.Conroy@hillcrestlabs.com>
Wed, 16 Sep 2009 07:11:14 +0000 (07:11 +0000)
committerMarcin Juszkiewicz <marcin@juszkiewicz.com.pl>
Thu, 4 Mar 2010 15:05:25 +0000 (16:05 +0100)
commit7e0dca393772c8145fb8dccd1a5898bc4fb7933a
tree4e3aa9a7c6446ccc7e87ab60e261dee94b9739a8
parent21272c27fabe7cf908b8b79d21fdd6fcfc2d7c43
rootfs_ipk.bbclass: move rootfs postprocess command

I ran into a problem yesterday where the ROOTFS_POSTPROCESS_COMMAND
started failing after I turned off ONLINE_PACKAGE_MANAGEMENT. It seems
the problem is that if package management is turned off, then the opkg
directory gets deleted. Subsequent opkg commands in the
ROOTFS_POSTPROCESS_COMMAND fail to open the lock file because the
directory is gone.

This patch simply moves the postprocess command above the destruction of
the opkg directory to allow any such commands to complete successfully.

Acked-by: Marcin Juszkiewicz <marcin@juszkiewicz.com.pl>
classes/rootfs_ipk.bbclass