packaged-staging.bbclass: Make sure opkg's libdir exists in all cases for lockfiles...
authorRichard Purdie <rpurdie@rpsys.net>
Tue, 17 Jun 2008 22:56:38 +0000 (22:56 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Tue, 17 Jun 2008 22:56:38 +0000 (22:56 +0000)
classes/packaged-staging.bbclass

index 0dd6900..5de5970 100644 (file)
@@ -190,7 +190,8 @@ python packagestage_scenefunc () {
         #
         # Install the staging package somewhere temporarily so we can extract the stamp files
         #
-        cmd = bb.data.expand("${PSTAGE_PKGMANAGER} -force-depends -f ${PSTAGE_MACHCONFIG} -o ${WORKDIR}/tstage install", d)
+        bb.mkdirhier(bb.data.expand("${WORKDIR}/tstage/${layout_libdir}/opkg/info/ ", d))
+        cmd = bb.data.expand("${PSTAGE_PKGMANAGER} -f ${PSTAGE_MACHCONFIG} -force-depends -o ${WORKDIR}/tstage install", d)
         ret = os.system("PATH=\"%s\" %s %s" % (path, cmd, stagepkg))
         if ret != 0:
             bb.fatal("Couldn't install the staging package to a temp directory")