diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-02-04 19:28:59 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-27 15:46:04 +0200 |
commit | 7becc80cc80914aa092ad2cd0e22cd305e2413b1 (patch) | |
tree | 85e380c55bcb3a7a0b18f87846bd81db0fe2ec7c | |
parent | 00ee15e4de0d6adbe29b7f44b157ced8d1584b30 (diff) | |
download | dbscripts-7becc80cc80914aa092ad2cd0e22cd305e2413b1.tar.gz dbscripts-7becc80cc80914aa092ad2cd0e22cd305e2413b1.tar.xz |
implement getting files from svn
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | db-functions | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/db-functions b/db-functions index ff3e1d7..351aaeb 100644 --- a/db-functions +++ b/db-functions @@ -625,5 +625,15 @@ get_file_from_pkgrepo() { local filename="$3" # TODO: implement svn/git extraction + # for git: cd $whereever; git show $tag:$filename curl -s https://projects.archlinux.org/svntogit/community.git/plain/trunk/$filename?h=packages/$pkgbase + #arch_svn cat "${SVNREPO}/${_pkgbase}/tags/$tag/$filename" +} + +arch_svn() { + if [ -z "${SVNUSER}" ]; then + /usr/bin/svn "${@}" + else + sudo -u "${SVNUSER}" -- /usr/bin/svn --username "${SUDO_USER}" "${@}" + fi } |