summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-09-05 12:54:37 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-09-05 12:54:37 +0200
commitcca13c2b41ba1389ce4187a728e05a376ad3ad0d (patch)
tree20b72c65928ed05889662f6122302d9b9885ed1c /db-functions
parent3b903c5c46287cc6f453b3138842715a467c57fb (diff)
downloaddbscripts-cca13c2b41ba1389ce4187a728e05a376ad3ad0d.tar.gz
dbscripts-cca13c2b41ba1389ce4187a728e05a376ad3ad0d.tar.xz
Fix updating of same package into different repositories at aonce
See FS#20745
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions8
1 files changed, 4 insertions, 4 deletions
diff --git a/db-functions b/db-functions
index 7a751bf..4ac282a 100644
--- a/db-functions
+++ b/db-functions
@@ -296,14 +296,14 @@ check_pkgsvn() {
in_array "${repo}" $(get_repos_for_host) || return 1
- if [ ! -f "${WORKDIR}/pkgbuilds/${pkgbase}" ]; then
- mkdir -p "${WORKDIR}/pkgbuilds"
+ if [ ! -f "${WORKDIR}/pkgbuilds/${repo}/${pkgbase}" ]; then
+ mkdir -p "${WORKDIR}/pkgbuilds/${repo}"
svn export -q "${SVNREPO}/${pkgbase}/repos/${repo}-${pkgarch}/PKGBUILD" \
- "${WORKDIR}/pkgbuilds/${pkgbase}" >/dev/null
+ "${WORKDIR}/pkgbuilds/${repo}/${pkgbase}" >/dev/null
[ $? -ge 1 ] && return 1
fi
- local pkgver="$(. "${WORKDIR}/pkgbuilds/${pkgbase}"; echo "${pkgver}-${pkgrel}")"
+ local pkgver="$(. "${WORKDIR}/pkgbuilds/${repo}/${pkgbase}"; echo "${pkgver}-${pkgrel}")"
[ -z "${pkgver}" ] && return 1
if echo "$(basename ${pkgfile})" | grep -q "${pkgver}-${pkgarch}"; then
return 0