From 71b9ce3bd48165d2c9c2e0c272bc44096aa41678 Mon Sep 17 00:00:00 2001 From: Lucio Andrés Illanes Albornoz (arab, vxp) Date: Dec 06 2017 18:24:44 +0000 Subject: subr/pkg_install.subr, vars/dist_{etc,minipix_dist}.vars: explicitly pass --overwrite to tar(1). --- diff --git a/subr/pkg_install.subr b/subr/pkg_install.subr index 0d74ecf..84eda48 100644 --- a/subr/pkg_install.subr +++ b/subr/pkg_install.subr @@ -5,7 +5,7 @@ pkg_install() { ex_rtl_fileop mkdir "${PKG_PREFIX}"; tar -C "${PKG_DESTDIR}" -cpf - . |\ - tar -C "${PKG_PREFIX}" -xpf -; + tar -C "${PKG_PREFIX}" --overwrite -xpf -; }; # vim:filetype=sh diff --git a/vars/dist_etc.vars b/vars/dist_etc.vars index 6ed6f80..6a4268b 100644 --- a/vars/dist_etc.vars +++ b/vars/dist_etc.vars @@ -5,7 +5,7 @@ pkg_dist_etc_all() { tar -C "${MIDIPIX_BUILD_PWD}/etc" -cpf - \ midipix.sh README midipix_shortcut.vbs |\ - tar -C "${PREFIX}" -xpf -; + tar -C "${PREFIX}" --overwrite -xpf -; chmod +x "${PREFIX}/midipix.sh"; }; diff --git a/vars/dist_minipix_dist.vars b/vars/dist_minipix_dist.vars index 8cb8d55..936eabb 100644 --- a/vars/dist_minipix_dist.vars +++ b/vars/dist_minipix_dist.vars @@ -24,7 +24,7 @@ pkg_dist_minipix_dist_all() { "${_dist_pfx}/share/terminfo/${_term_letter}"; done; tar -C "${PREFIX_NATIVE}/share" -cpf - terminfo |\ - tar -C "${_dist_pfx}/bin" -xpf -; + tar -C "${_dist_pfx}/bin" --overwrite -xpf -; }; # vim:filetype=sh