aboutsummaryrefslogtreecommitdiff
path: root/manage_repository.sh
diff options
context:
space:
mode:
authorGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 23:30:56 +0100
committerGravatar Jonas Gunz <himself@jonasgunz.de> 2023-01-26 23:30:56 +0100
commitaa5dc4938d43ae90e8604ffea40a759ff798da4b (patch)
tree9a228dcb788fd95794e04a0bb02ab364c962a08e /manage_repository.sh
parent6357c11d61c9286c591a758dd735a2ba5a2ac26f (diff)
downloadaurbuilder-aa5dc4938d43ae90e8604ffea40a759ff798da4b.tar.gz
scripts
Diffstat (limited to 'manage_repository.sh')
-rwxr-xr-xmanage_repository.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/manage_repository.sh b/manage_repository.sh
new file mode 100755
index 0000000..395c263
--- /dev/null
+++ b/manage_repository.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+# https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository
+
+OUTDIR="testrun/db/"
+PKGDIR="testrun/db/"
+
+mkdir -p "$OUTDIR"
+
+repo-add -n "$OUTDIR/repo.db.tar.gz" "$PKGDIR/pkgout/*.pkg.*"
+
+rm "$OUTDIR/*.old"