From af138659e5042debbb57deba5c0419ba744f75fd Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 25 May 2015 01:29:34 -0600 Subject: Pull in more changes from lukeshu/archlinux+cleanup+librelib --- db-functions | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'db-functions') diff --git a/db-functions b/db-functions index c1bf6e8..d0c45a4 100644 --- a/db-functions +++ b/db-functions @@ -26,15 +26,21 @@ mv_acl() { # set up general environment WORKDIR=$(mktemp -dt "${0##*/}.XXXXXXXXXX") +if [ -n "${SVNUSER}" ]; then + setfacl -m u:"${SVNUSER}":rwx "${WORKDIR}" + setfacl -m d:u:"${USER}":rwx "${WORKDIR}" + setfacl -m d:u:"${SVNUSER}":rwx "${WORKDIR}" +fi LOCKS=() REPO_MODIFIED=0 # Used: plain, msg, msg2, warning, error, in_array, get_full_version, abort, die # Overwritten: cleanup # Ignored: stat_busy, stat_done, -# setup_workdir, trab_abort, trap_exit, +# setup_workdir, trap_abort, trap_exit, # lock, slock, lock_close -. $(librelib common) +# pkgver_equal, find_cached_package, check_root +. "$(librelib common)" script_lock() { local LOCKDIR="$TMPDIR/.scriptlock.${0##*/}" @@ -83,7 +89,6 @@ cleanup() { if (( REPO_MODIFIED )); then date +%s > "${FTP_BASE}/lastupdate" - date -u +%s > "${FTP_BASE}/lastsync" fi [ "$1" ] && exit "$1" @@ -225,6 +230,13 @@ getpkgarch() { echo "$_ver" } +check_packager() { + local _packager + + _packager=$(_grep_pkginfo "$1" "packager") + [[ $_packager && $_packager != 'Unknown Packager' ]] +} + getpkgfile() { if [[ ${#} -ne 1 ]]; then error 'No canonical package found!' -- cgit v1.2.3-2-g168b