removidas las condiciones de abort

This commit is contained in:
Sandino Araico Sanchez 2016-03-23 07:47:51 -06:00
parent 5209946f86
commit 73e93093bc
2 changed files with 1 additions and 16 deletions

View file

@ -0,0 +1 @@
EBUILD static-dev-0.1.ebuild 639 SHA256 d5908135dd0dafdfbee3af4037af637168b7b37ccb4c6325e88c788cc6618e3e SHA512 4dc6c4de5c88b0c39c1bcff8806c125803b1f5a902e4fa5cf3b26acab9b090e47b67dd1a1656b7774fd3966c8bb7b68c52c726c50aafac72476dfd6ee186a813 WHIRLPOOL 3aae9f1be6090b19db2f0f50cdca6f736705747a4fafbfb7facabd4000009372a7783115c41704e3864dcec57714fdc1e995fc36f0dcb3eaef9990d8ca807866

View file

@ -16,28 +16,12 @@ IUSE=""
RDEPEND="sys-apps/makedev"
DEPEND="${RDEPEND}"
abort() {
echo
eerror "We have detected that you currently use udev or devfs or devtmpfs"
eerror "and this ebuild cannot install to the same mount-point."
die "Cannot install on udev/devfs tmpfs."
}
pkg_pretend() {
if [[ ${MERGE_TYPE} == "buildonly" ]] ; then
# User is just compiling which is fine -- all our checks are merge-time.
return
fi
# We want to not clobber udev (tmpfs) or older devfs setups.
if [[ -d ${ROOT}/dev/.udev || -c ${ROOT}/dev/.devfs ]] ; then
abort
fi
# We also want to not clobber newer devtmpfs setups.
if [[ ${ROOT} == "/" ]] && \
! awk '$2 == "/dev" && $3 == "devtmpfs" { exit 1 }' /proc/mounts ; then
abort
fi
}
pkg_postinst() {