summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@parabola.nu>2018-05-10 12:42:46 -0400
committerLuke Shumaker <lukeshu@parabola.nu>2018-05-10 12:42:46 -0400
commit5189a00cd7e3cc415f13fb8aa867fd7c8c6711fa (patch)
tree64d4777c1fee63b11b6a2f2b3490ea69a6c9ee2f /config
parent98c2c92392d2acb9cf004b135d00087d35dca721 (diff)
db-import-pkg: Don't bother with hardlinking prior to sync_repo
When implementing 8393137cd49de14f0f74caee8e93fa43ca881e2b, I had thought that being able to create a hardlink-shadow of the repo was necessary to avoid huge amounts of extra network traffic. Creating hardlinks required TMPDIR to be on the same filesystem as FTP_BASE. However, I now realize that sync_repo *only* syncs symlinks, which are cheap, network-wise. So, partially revert "db-import-pkg: Don't do any work directly in $FTP_BASE/$repo or $WORKDIR/rsync" Revert the bit that created hardlinks, and revert the changes to TMPDIR.
Diffstat (limited to 'config')
-rw-r--r--config4
1 files changed, 1 insertions, 3 deletions
diff --git a/config b/config
index f02b27d..83131fb 100644
--- a/config
+++ b/config
@@ -22,9 +22,7 @@ SOURCE_CLEANUP_KEEP=30
LOCK_DELAY=10
[ -n "${STAGING:-}" ] || STAGING="$HOME/staging/unknown/staging"
-#export TMPDIR="/tmp"
-export TMPDIR=/srv/repo/tmp
-mkdir -p "$TMPDIR"
+export TMPDIR="/tmp"
ARCHES=(x86_64 i686 armv7h)
DBEXT=".db.tar.gz"
FILESEXT=".files.tar.gz"