summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-08-22 14:04:08 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-08-22 15:40:18 +0200
commit996c0b124b4fdcdf4ded71fb1c4a5bb8e8784f8f (patch)
tree1fc90018372dd501f155e4b48609a8e613087d8a /db-functions
parent801f7742004139229866b911634679143f2c9404 (diff)
downloaddbscripts-996c0b124b4fdcdf4ded71fb1c4a5bb8e8784f8f.tar.gz
dbscripts-996c0b124b4fdcdf4ded71fb1c4a5bb8e8784f8f.tar.xz
WIP: switch from svn to gitgitpackages
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions30
1 files changed, 0 insertions, 30 deletions
diff --git a/db-functions b/db-functions
index ab5d93a..bbbafad 100644
--- a/db-functions
+++ b/db-functions
@@ -331,36 +331,6 @@ check_pkgfile() {
fi
}
-check_pkgsvn() {
- local pkgfile="${1}"
- local _pkgbase="$(getpkgbase ${pkgfile})"
- [ $? -ge 1 ] && return 1
- local _pkgname="$(getpkgname ${pkgfile})"
- [ $? -ge 1 ] && return 1
- local _pkgver="$(getpkgver ${pkgfile})"
- [ $? -ge 1 ] && return 1
- local _pkgarch="$(getpkgarch ${pkgfile})"
- [ $? -ge 1 ] && return 1
- local repo="${2}"
-
- in_array "${repo}" ${PKGREPOS[@]} || return 1
-
- if [ ! -f "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" ]; then
- mkdir -p "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}"
- svn export -q "${SVNREPO}/${_pkgbase}/repos/${repo}-${_pkgarch}/PKGBUILD" \
- "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null
- [ $? -ge 1 ] && return 1
- fi
-
- local svnver="$(. "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}"; echo $(get_full_version ${epoch:-0} ${pkgver} ${pkgrel}) )"
- [ "${svnver}" == "${_pkgver}" ] || return 1
-
- local svnnames=($(. "${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}"; echo ${pkgname[@]}))
- in_array "${_pkgname}" ${svnnames[@]} || return 1
-
- return 0
-}
-
check_splitpkgs() {
local repo="${1}"
shift