diff options
author | wangbiao <biao716.wang@samsung.com> | 2023-11-21 14:49:08 +0900 |
---|---|---|
committer | wangbiao <biao716.wang@samsung.com> | 2023-11-21 14:49:12 +0900 |
commit | 44afd7428a959fec7d4dd82db6a5627cc07cc2f8 (patch) | |
tree | aefb8c60a50d890f85f75b3dc7736982fabb3197 | |
parent | 34eef61f83be1616f51b6961d02614e8c2542514 (diff) | |
download | build-44afd7428a959fec7d4dd82db6a5627cc07cc2f8.tar.gz build-44afd7428a959fec7d4dd82db6a5627cc07cc2f8.tar.bz2 build-44afd7428a959fec7d4dd82db6a5627cc07cc2f8.zip |
use the correct lua to excutxe scripts
Change-Id: I8ff682592f8f1c0b4c0615493f8df49a5aad7010
Signed-off-by: wangbiao <biao716.wang@samsung.com>
-rw-r--r-- | build-pkg-rpm | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/build-pkg-rpm b/build-pkg-rpm index 607edf7..722079f 100644 --- a/build-pkg-rpm +++ b/build-pkg-rpm @@ -208,6 +208,9 @@ pkg_runscripts_rpm() { echo "running $PKG preinstall script" local prog read prog < "$BUILD_ROOT/.init_b_cache/scripts/$PKG.preprog" + if test "$prog" = "<lua>" ; then + prog="/usr/bin/lua" + fi (cd $BUILD_ROOT && chroot $BUILD_ROOT "${prog:-sh}" ".init_b_cache/scripts/$PKG.pre" 0) rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.pre" "$BUILD_ROOT/.init_b_cache/scripts/$PKG.preprog" fi @@ -215,6 +218,9 @@ pkg_runscripts_rpm() { echo "running $PKG postinstall script" local prog read prog < "$BUILD_ROOT/.init_b_cache/scripts/$PKG.postprog" + if test "$prog" = "<lua>" ; then + prog="/usr/bin/lua" + fi (cd $BUILD_ROOT && chroot $BUILD_ROOT "${prog:-sh}" ".init_b_cache/scripts/$PKG.post" 1) rm -f "$BUILD_ROOT/.init_b_cache/scripts/$PKG.post" "$BUILD_ROOT/.init_b_cache/scripts/$PKG.postprog" fi |