Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/src/lib/common.sh
diff options
context:
space:
mode:
authorLevente Polyak <anthraxx@archlinux.org>2024-02-16 22:34:43 +0100
committerLevente Polyak <anthraxx@archlinux.org>2024-04-23 22:48:55 +0200
commit5780ba0e380d619c7e6632edbf6e357dce73289f (patch)
tree82bb29f7b43bd53ffcebbb85ebae07ed75c11ef2 /src/lib/common.sh
parent9a5181db5bfa78d33d3123145ea4c84375f2e8f2 (diff)
fix(release): ensure we release split package uploads as one batch
Use a central location in common.sh to define the default rsync options. Switch to use batched uploads by targeting a partial directory which is not taken into account by db update. Instead, once all packages that belong to a split package group are uploaded into the .partial directory, all artifacts are moved in one batch into the staging directory of the repo server. This reduced the window of opportunity for a partial release significantly to a tiny window. Component: pkgctl release
Diffstat (limited to 'src/lib/common.sh')
-rw-r--r--src/lib/common.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/lib/common.sh b/src/lib/common.sh
index 00ece97..7d04c25 100644
--- a/src/lib/common.sh
+++ b/src/lib/common.sh
@@ -31,6 +31,17 @@ export PACKAGING_REPO_RELEASE_HOST=repos.archlinux.org
export PKGBASE_MAINTAINER_URL=https://archlinux.org/packages/pkgbase-maintainer
export AUR_URL_SSH=aur@aur.archlinux.org
+export RSYNC_OPTS=(
+ --rsh=ssh
+ --checksum
+ --copy-links
+ --human-readable
+ --progress
+ --partial
+ --partial-dir=.partial
+ --delay-updates
+)
+
# ensure TERM is set with a fallback to dumb
export TERM=${TERM:-dumb}