Use die_functions.bash provided by paludis

This commit is contained in:
2015-08-14 16:27:57 +02:00
parent e7d5d9aa70
commit 954b98f4e0
5 changed files with 7 additions and 27 deletions

View File

@@ -1,16 +1,12 @@
#!/bin/bash
source "${PALUDIS_EBUILD_DIR}/echo_functions.bash"
source "${PALUDIS_EBUILD_DIR}/die_functions.bash"
PORTDIR="/usr/portage"
[[ -z ${PORTDIR} || "$(dirname ${PORTDIR})" == "/" ]] && die "PORTDIR empty or pointing to root!"
die() {
eerror "${1}"
exit 1
}
einfo "syncing metadata cache"
egencache --jobs=8 --repo=gentoo --update --update-use-local-desc || die "egencache failed!"