[util-pkg] finish check_requirements()

This commit is contained in:
udeved 2015-06-05 16:43:09 +02:00
parent cffaa8a8e2
commit 6058ed34a1

View file

@ -17,9 +17,13 @@ check_chroot_version(){
fi fi
} }
#check_dir(){ check_reqirements(){
#check for pkgbuilds local pb=$(find ${PWD} -maxdepth 2 -name 'PKGBUILD' -type f)
#} [[ -z ${pb[@]} ]] && die "${0##*/} must be run inside a valid PKGBUILD directory!"
for p in ${pb[@]};do
[[ $p != ${buildset_pkg} ]] && die "${buildset_pkg} doesn't exist!"
done
}
chroot_create(){ chroot_create(){
msg "Creating chroot for [${branch}] (${arch})..." msg "Creating chroot for [${branch}] (${arch})..."