summaryrefslogtreecommitdiffhomepage
path: root/subr.pkg/pkg_install_clean.subr
blob: e794b09f69b24357bf2c6dc7434016c089a2c7a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#
# set +o errexit -o noglob -o nounset is assumed.
#

pkg_install_clean() {
	local _pic_group_name="${1}" _pic_pkg_name="${2}" _pic_restart_at="${3}";

	if [ "${PKG_DESTDIR:+1}" = 1 ]; then
		rtl_fileop rm "${PKG_DESTDIR}" || return 1;
		rtl_fileop mkdir "${PKG_DESTDIR}" || return 1;
	fi;
	return 0;
};

# vim:filetype=sh textwidth=0