From 435d7a09c664c04c05d0a10a28f20738c1db3079 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz=20=28arab=2C=20vx?= =?UTF-8?q?p=29?= Date: Mon, 21 May 2018 18:48:33 +0000 Subject: subr/pkg_install.subr:pkg_install(): create & append `${PKG_NAME}\n' to ${PREFIX}/pkglist.${PKG_BUILD_TYPE} (via midipix.) --- subr/pkg_install.subr | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index dd007abe..56e306c1 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -17,6 +17,10 @@ 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}"; + fi; + echo "${PKG_NAME}" >> "${PREFIX}/pkglist.${PKG_BUILD_TYPE}"; }; # vim:filetype=sh -- cgit v1.2.3