[CONSOLIDATED,REQUEST,35/64] run-postinsts does not run any scripts

Submitted by Saul Wold on Aug. 14, 2012, 12:13 p.m. | Patch ID: 34533


Message ID 67bf9376c45af4f8ea45685bffce31627466b4ce.1344946189.git.sgw@linux.intel.com
State Accepted
Commit e782cefd53cf3d3cc8ad7484335a697f9dde5751
Headers show

Commit Message

Saul Wold Aug. 14, 2012, 12:13 p.m.
From: Kenneth Solbjerg <kenneth.solbjerg@moveinnovation.dk>


Sorry for any mistakes, but this is my first patch...

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>
 .../dpkg/run-postinsts/run-postinsts.awk           |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
index 18a0492..cbc8d1a 100644
--- a/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
+++ b/meta/recipes-devtools/dpkg/run-postinsts/run-postinsts.awk
@@ -7,7 +7,7 @@ 
-  rc=system("test -d /usr/dpkg/info/")
+  rc=system("test -d /var/lib/dpkg/info/")
   if (rc==0)