summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-10-14 02:23:52 +0000
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2018-10-14 02:23:52 +0000
commitd02931b6ba59b543d698c161feb07d5da79fee73 (patch)
tree009731d35b714c20b0e8ce02fd0cac803965f1a5
parent68c1ee8c80bd687bd1650d36554dde25dd94d1e6 (diff)
downloadmidipix_build-d02931b6ba59b543d698c161feb07d5da79fee73.tar.bz2
midipix_build-d02931b6ba59b543d698c161feb07d5da79fee73.tar.xz
subr/pkg_install.subr: don't amend pkglist.* w/ minipix packages (via midipix.)
-rw-r--r--subr/pkg_install.subr12
1 files 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