forked from mirrored-repos/manjaro-tools
[util-pkg] check_req buildset support
This commit is contained in:
parent
7f3ac8ce72
commit
83cc1d9545
1 changed files with 7 additions and 1 deletions
|
@ -19,7 +19,13 @@ check_chroot_version(){
|
|||
|
||||
check_requirements(){
|
||||
[[ -z $(find . -maxdepth 2 -name 'PKGBUILD' -type f) ]] && die "${0##*/} must be run inside a valid PKGBUILD directory!"
|
||||
[[ -z $(find $PWD -type d -name "${buildset_pkg}") ]] && die "${buildset_pkg} is not a valid package!"
|
||||
if ${is_buildset};then
|
||||
for i in $(cat ${sets_dir_pkg}/${buildset_pkg}.set);do
|
||||
[[ -z $(find . -type d -name "${i}") ]] && die "${buildset_pkg} is not a valid buildset!"
|
||||
done
|
||||
else
|
||||
[[ -z $(find . -type d -name "${buildset_pkg}") ]] && die "${buildset_pkg} is not a valid package!"
|
||||
fi
|
||||
}
|
||||
|
||||
chroot_create(){
|
||||
|
|
Loading…
Reference in a new issue