From d02931b6ba59b543d698c161feb07d5da79fee73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Sun, 14 Oct 2018 02:23:52 +0000 Subject: subr/pkg_install.subr: don't amend pkglist.* w/ minipix packages (via midipix.) --- subr/pkg_install.subr | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 47aa121d..c706cfc4 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -18,12 +18,14 @@ pkg_install() { tar -C "${PKG_DESTDIR}" -cpf - . |\ gzip -c -9 - > "${PKG_BASE_DIR}/${PKG_NAME}.tgz" fi; - if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then - touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}"; + if [ "${PKG_NAME%_minipix}" = "${PKG_NAME}" ]; then + if [ ! -e "${PREFIX}/pkglist.${PKG_BUILD_TYPE}" ]; then + touch "${PREFIX}/pkglist.${PKG_BUILD_TYPE}"; + fi; + _pkglist_name="${PKG_BASE_DIR##*/}"; + _pkglist_name="${_pkglist_name%%-*}"; + echo "${_pkglist_name}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}"; fi; - _pkglist_name="${PKG_BASE_DIR##*/}"; - _pkglist_name="${_pkglist_name%%-*}"; - echo "${_pkglist_name}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}"; }; # vim:filetype=sh -- cgit v1.2.3