summaryrefslogtreecommitdiffstats
path: root/db-functions
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-10-07 15:41:03 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-27 15:46:05 +0200
commit3aab49eb698b9697109e8efd22294a4bc3b811d4 (patch)
tree21d0580fd6d32e54fafff57b78b5c3b6075ce6cb /db-functions
parent83350c1fd555fb474a0572f639cc8364260f180a (diff)
downloaddbscripts-3aab49eb698b9697109e8efd22294a4bc3b811d4.tar.gz
dbscripts-3aab49eb698b9697109e8efd22294a4bc3b811d4.tar.xz
make tests.d/ftpdir-cleanup work
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'db-functions')
-rw-r--r--db-functions15
1 files changed, 13 insertions, 2 deletions
diff --git a/db-functions b/db-functions
index 47053ea..c637b35 100644
--- a/db-functions
+++ b/db-functions
@@ -634,8 +634,19 @@ get_file_from_pkgrepo() {
# for git: cd $whereever; git show $tag:$filename
#curl -s https://projects.archlinux.org/svntogit/community.git/plain/trunk/$filename?h=packages/$pkgbase
# TODO: this requires us to restructure the repos
- arch_svn cat "${SVNREPO}/${_pkgbase}/tags/$tag/$filename"
- #arch_svn cat "${SVNREPO}/${_pkgbase}/trunk/$filename"
+ arch_svn cat "${SVNREPO}/${pkgbase}/tags/$tag/$filename"
+ #arch_svn cat "${SVNREPO}/${pkgbase}/trunk/$filename"
+}
+
+get_dir_from_pkgrepo() {
+ local pkgbase="$1"
+ local tag="$2"
+ local src="$3"
+ local dest="$4"
+
+ # TODO: implement svn/git extraction
+ # for git: use git archive?
+ arch_svn export -q "${SVNREPO}/${pkgbase}/tags/${tag}/${src}" "${dest}"
}
arch_svn() {