[arch-dev-public] [PATCH] [dbscripts] Add kde-unstable support

Andrea Scarpino andrea at archlinux.org
Tue Dec 14 04:00:03 EST 2010


---
 db-functions |   18 ++++++++++++++----
 1 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/db-functions b/db-functions
index 8ac9e63..ae68f87 100644
--- a/db-functions
+++ b/db-functions
@@ -323,8 +323,13 @@ check_pkgsvn() {
 
 	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
+		if ["${repo}" == 'kde-unstable' ]; then
+			svn export -q "${SVNREPO}/${_pkgbase}/${repo}-${_pkgarch}/PKGBUILD" \
+				"${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null
+		else
+			svn export -q "${SVNREPO}/${_pkgbase}/repos/${repo}-${_pkgarch}/PKGBUILD" \
+				"${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null
+		fi
 		[ $? -ge 1 ] && return 1
 	fi
 
@@ -358,8 +363,13 @@ check_splitpkgs() {
 
 		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
+			if ["${repo}" == 'kde-unstable' ]; then
+				svn export -q "${SVNREPO}/${_pkgbase}/${repo}-${_pkgarch}/PKGBUILD" \
+					"${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null
+			else
+				svn export -q "${SVNREPO}/${_pkgbase}/repos/${repo}-${_pkgarch}/PKGBUILD" \
+					"${WORKDIR}/pkgbuilds/${repo}-${_pkgarch}/${_pkgbase}" >/dev/null
+			fi
 			[ $? -ge 1 ] && return 1
 		fi
 
-- 
1.7.3.3



More information about the arch-dev-public mailing list