summaryrefslogtreecommitdiff
path: root/db-functions
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 11:12:18 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-06-18 11:12:18 -0400
commite8f411803648f64b386dd2970b024b9ba15ba682 (patch)
treeca56d48e18c4801be9ab00bee901a830cc6e9ec9 /db-functions
parentbcaa90a2e6f26191ff4aa9e0279080d1efeec3e7 (diff)
The eval+printf %q thing wasn't worth the hard-to-read code
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions4
1 files changed, 2 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index ebf1d47..f703386 100644
--- a/db-functions
+++ b/db-functions
@@ -305,7 +305,7 @@ check_pkgxbs() {
local xbsver="$(. "`xbs releasepath ${_pkgbase} ${repo} ${_pkgarch}`/PKGBUILD"; get_full_version "${_pkgname}")"
[ "${xbsver}" == "${_pkgver}" ] || return 1
- eval "local xbsnames=($(. "`xbs releasepath ${_pkgbase} ${repo} ${_pkgarch}`/PKGBUILD"; printf '%q ' "${pkgname[@]}"))"
+ local xbsnames=($(. "$(xbs releasepath "${_pkgbase}" "${repo}" "${_pkgarch}")/PKGBUILD"; echo "${pkgname[@]}"))
in_array "${_pkgname}" "${xbsnames[@]}" || return 1
return 0
@@ -331,7 +331,7 @@ check_splitpkgs() {
mkdir -p "${repo}/${_pkgarch}/${_pkgbase}"
echo "${_pkgname}" >> "${repo}/${_pkgarch}/${_pkgbase}/staging"
- eval "local xbsnames=($(. "`xbs releasepath ${_pkgbase} ${repo} ${_pkgarch}`/PKGBUILD"; printf '%q ' "${pkgname[@]}"))"
+ local xbsnames=($(. "$(xbs releasepath "${_pkgbase}" "${repo}" "${_pkgarch}")/PKGBUILD"; echo "${pkgname[@]}"))
for xbsname in "${xbsnames[@]}"; do
echo "${xbsname}" >> "${repo}/${_pkgarch}/${_pkgbase}/xbs"
done