[arch-dev-public] [PATCH] [dbscripts] Add kde-unstable support
14 Dec
2010
14 Dec
'10
8:57 a.m.
>From 145604bf50eb1db47c543b33e8e4b91a4e72ebbb Mon Sep 17 00:00:00 2001 From: Andrea Scarpino <andrea@archlinux.org> Date: Tue, 14 Dec 2010 09:50:42 +0100 Subject: [PATCH] [dbscripts] Add kde-unstable support --- 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 -- Andrea Scarpino Arch Linux Developer
5122
Age (days ago)
5122
Last active (days ago)
0 comments
1 participants
participants (1)
-
Andrea Scarpino