Fix for working with package groups

This commit is contained in:
Jack L. Frost 2015-01-27 19:34:57 +03:00
parent aa4062634c
commit 9de0ce1e8d

7
zpac
View File

@ -21,7 +21,8 @@ usage() {
} }
aur.get() { aur.get() {
local tarball_url=$(package-query -1 -AS -f %u "$1") local aur_url pkg_group tarball_url=$(package-query -1 -AS -f %u "$1")
IFS='/' read _ _ aur_url _ _ pkg_group _ <<< "$tarball_url"
cd "$cfg_workdir" cd "$cfg_workdir"
@ -31,10 +32,10 @@ aur.get() {
return 1 return 1
} }
echo ": ${cfg_workdir}/${1}" echo ": ${cfg_workdir}/${pkg_group}"
if (( flag_get_deps )); then if (( flag_get_deps )); then
cd "${cfg_workdir}/${1}" cd "${cfg_workdir}/${pkg_group}"
source PKGBUILD source PKGBUILD
for i in "${depends[@]}" "${makedepends[@]}"; do for i in "${depends[@]}" "${makedepends[@]}"; do