diff options
| -rw-r--r-- | meta/classes/package.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index b4471532a3..8b89fb1129 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass | |||
| @@ -1358,12 +1358,16 @@ python emit_pkgdata() { | |||
| 1358 | import json | 1358 | import json |
| 1359 | 1359 | ||
| 1360 | def process_postinst_on_target(pkg, mlprefix): | 1360 | def process_postinst_on_target(pkg, mlprefix): |
| 1361 | pkgval = d.getVar('PKG_%s' % pkg) | ||
| 1362 | if pkgval is None: | ||
| 1363 | pkgval = pkg | ||
| 1364 | |||
| 1361 | defer_fragment = """ | 1365 | defer_fragment = """ |
| 1362 | if [ -n "$D" ]; then | 1366 | if [ -n "$D" ]; then |
| 1363 | $INTERCEPT_DIR/postinst_intercept delay_to_first_boot %s mlprefix=%s | 1367 | $INTERCEPT_DIR/postinst_intercept delay_to_first_boot %s mlprefix=%s |
| 1364 | exit 0 | 1368 | exit 0 |
| 1365 | fi | 1369 | fi |
| 1366 | """ % (pkg, mlprefix) | 1370 | """ % (pkgval, mlprefix) |
| 1367 | 1371 | ||
| 1368 | postinst = d.getVar('pkg_postinst_%s' % pkg) | 1372 | postinst = d.getVar('pkg_postinst_%s' % pkg) |
| 1369 | postinst_ontarget = d.getVar('pkg_postinst_ontarget_%s' % pkg) | 1373 | postinst_ontarget = d.getVar('pkg_postinst_ontarget_%s' % pkg) |
