]> code.ossystems Code Review - openembedded-core.git/commitdiff
run-postinsts: Does not run any scripts on debian rootfs
authorKenneth Solbjerg <kenneth.solbjerg@moveinnovation.dk>
Mon, 9 Jul 2012 12:19:48 +0000 (14:19 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Aug 2012 13:18:42 +0000 (14:18 +0100)
On my system (core-image-base, .deb package files), run-postinsts does
not run any scripts due to a failed test in run-postinsts.awk.
As dpkg is not actually installed on target, opkg is identified as the
pkgdir and that is not right...

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk

index 18a0492fc0e4a7ee2ea6571ecea1fb3f72cc33f7..cbc8d1a1095438516f3a44b663e2eba88cd26e1d 100644 (file)
@@ -7,7 +7,7 @@
 #
 
 BEGIN {
-  rc=system("test -d /usr/dpkg/info/")
+  rc=system("test -d /var/lib/dpkg/info/")
   if (rc==0)
     pkgdir="/var/lib/dpkg/info"
   else