Don't download everything.
continuous-integration/drone Build was killed Details

This commit is contained in:
Tobias Manske 2023-03-28 11:01:11 +02:00
parent 1a7016a930
commit 3b8bacc9f7
Signed by: tobias
GPG Key ID: 9164B527694A0709
2 changed files with 8 additions and 11 deletions

View File

@ -39,16 +39,12 @@ trap unlock EXIT INT TERM
echo "Pulling Repository"
(
mcli mirror --overwrite s3/repo/x86_64 /repo &>/dev/null
rm "/repo/${AUR_REPO_NAME}.db"
rm "/repo/${AUR_REPO_NAME}.db.sig"
rm "/repo/${AUR_REPO_NAME}.files"
# rm "/repo/${AUR_REPO_NAME}.files.sig"
ln -sf "/repo/${AUR_REPO_NAME}.db.tar.xz" "/repo/${AUR_REPO_NAME}.db"
ln -sf "/repo/${AUR_REPO_NAME}.files.tar.xz" "/repo/${AUR_REPO_NAME}.files"
ln -sf "/repo/${AUR_REPO_NAME}.db.tar.xz.sig" "/repo/${AUR_REPO_NAME}.db.sig"
ln -sf "/repo/${AUR_REPO_NAME}.files.tar.xz.sig" "/repo/${AUR_REPO_NAME}.files.sig"
) &>/dev/null
mcli cp "s3/repo/x86_64/${AUR_REPO_NAME}.db.tar.xz" /repo
mcli cp "s3/repo/x86_64/${AUR_REPO_NAME}.db.tar.xz.sig" /repo
mcli cp "s3/repo/x86_64/${AUR_REPO_NAME}.files.tar.xz" /repo
mcli cp "s3/repo/x86_64/${AUR_REPO_NAME}.files.tar.xz.sig" /repo
) &>/dev/null
if ! (aur repo >/dev/null 2>&1); then
printf "Aur repo not initialized, initializing /repo...\n"
@ -81,7 +77,7 @@ find . -name PKGBUILD -execdir sh -c 'makepkg --printsrcinfo > .SRCINFO' \;
find . -iname PKGBUILD -exec dirname {} \; | aur srcver --no-prepare - >vcs
# Rebuild all git packages
if [ ! -z "$NO_GIT_REBUILD" ]; then
if [ -z "${NO_GIT_REBUILD:-}" ]; then
cut -f1 vcs | grep -e "-git$" | tee -a buildqueue
fi

View File

@ -91,6 +91,7 @@ Include = /etc/pacman.d/mirrorlist
[rad4day]
SigLevel = Never
Server = file:///repo
Server = https://repo.tobiasmanske.de/os/$arch/
[options]
NoExtract = usr/share/help/* !usr/share/help/en*