aboutsummaryrefslogtreecommitdiff
path: root/debug/manage_repository.sh
blob: 5f0f01be0a6220ca1dab1029519e1bdf3b75519e (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# https://wiki.archlinux.org/title/Pacman/Tips_and_tricks#Custom_local_repository

OUTDIR="testrun/db/"
PKGDIR="testrun/pkgout/"

mkdir -p "$OUTDIR"

repo-add -p -R "$OUTDIR/repo.db.tar.gz" "$PKGDIR/"*.pkg.*

rm "$OUTDIR/"*.old