diff options
Diffstat (limited to 'recipes-support/libpwquality')
-rw-r--r-- | recipes-support/libpwquality/libpwquality_1.3.0.bb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/recipes-support/libpwquality/libpwquality_1.3.0.bb b/recipes-support/libpwquality/libpwquality_1.3.0.bb index e5179c9..d7b04d4 100644 --- a/recipes-support/libpwquality/libpwquality_1.3.0.bb +++ b/recipes-support/libpwquality/libpwquality_1.3.0.bb @@ -83,12 +83,14 @@ pkg_postinst_${PN}() { LOG="logger -s -p user.info -t opkg\ libpwquality" cd / fi - logsave=$(patch -p1 -N < "$PAM_CONFIGURE" 2>&1 || true) - if [[ -n ${logsave} ]] ; then - ${LOG} "In directory $(pwd)" - ${LOG} "patch -p1 -N < $PAM_CONFIGURE" - ${LOG} "${PN} patch: ${logsave}" - + # -N busybox option for patch is broken + if patch --dry-run -p1 < "$PAM_CONFIGURE" ; then + logsave=$(patch -p1 < "$PAM_CONFIGURE" 2>&1 || true) + if [[ -n ${logsave} ]] ; then + ${LOG} "In directory $(pwd)" + ${LOG} "patch -p1 < $PAM_CONFIGURE" + ${LOG} "${PN} patch: ${logsave}" + fi fi } |