1
0
Fork 0
mirror of https://github.com/Luzifer/archrepo.git synced 2024-12-20 13:11:17 +00:00

Build package.txt during build

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-09-23 08:47:24 +02:00
parent c4c8fee149
commit fd3e17053d
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D
2 changed files with 10 additions and 2 deletions

1
.gitignore vendored
View file

@ -2,6 +2,7 @@
*.db.sig
*.files
*.files.sig
packages.txt
.repo_cache
*.tar.xz
*.tar.xz.sig

View file

@ -2,7 +2,7 @@ export DATABASE:=$(shell find . -maxdepth 1 -mindepth 1 -name '*.db.tar.xz' -or
export REPOKEY:=D0391BF9
maintanance: do_updates do_cleanup upload
maintanance: do_updates do_cleanup list_packages upload
do_updates: aur_update
do_updates: repo_update
@ -40,6 +40,7 @@ check_database:
check_tools:
@which aws
@which column
@which curl
@which docker
@which jq
@ -57,7 +58,10 @@ cleanup_orphan_signatures: check_database
cleanup_repo: check_tools check_database scripts/repoctl.toml
repoctl update
repo_update: check_tools check_database
list_packages:
tar -tf luzifer.db.tar.xz | grep -v '/desc' | sed -E 's/(.*)-([^-]+-[0-9]+)\//\1\t\2/' | sort | column -t >packages.txt
repo_update: check_tools check_database load_ssh_key
bash -euo pipefail -c 'for repo in $$(grep -v "^#" repo-urls); do script_level=1 ./scripts/update-repo.sh $${repo}; done'
scripts/repoctl.toml:
@ -70,3 +74,6 @@ sign_database:
check_archive_mix:
bash ./scripts/has_archive_mix.sh
load_ssh_key:
vault-sshadd loki