diff options
author | Britney Fransen <brfransen@gmail.com> | 2022-11-18 20:11:10 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2022-11-18 20:11:10 (GMT) |
commit | aa49a137c882caf85fe2036641d1eaa87b900b7a (patch) | |
tree | a506a2be9564107a8b580fa5d1d072797c67fd30 /linhes/linhes-dev/lh_update_db_repo.sh | |
parent | bad99ceb7fe0551a50d34a6d88fdb95894e42c79 (diff) | |
download | linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.zip linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.tar.gz linhes_pkgbuild-aa49a137c882caf85fe2036641d1eaa87b900b7a.tar.bz2 |
linhes-dev: mp.py: rework --rmold
rename scripts to lh_
Diffstat (limited to 'linhes/linhes-dev/lh_update_db_repo.sh')
-rwxr-xr-x | linhes/linhes-dev/lh_update_db_repo.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linhes/linhes-dev/lh_update_db_repo.sh b/linhes/linhes-dev/lh_update_db_repo.sh new file mode 100755 index 0000000..3316e38 --- /dev/null +++ b/linhes/linhes-dev/lh_update_db_repo.sh @@ -0,0 +1,22 @@ +#!/bin/bash +# tiny util to regenreate the database on the LOCAL machine + +if [ $# -ne 2 ] +then + echo "incorrect number of args" + echo "lh_update_db_repo.sh directory repo" + echo "EX: update_db_repo.sh /data/dev/pkg_repo/x86_64/linhes-testing linhes-testing" + exit 1 +fi + + +cd $1 +REPO=$2 +echo " --------------------------" +echo "updating database for $REPO" +echo " --------------------------" +#pwd + #forcefully remove the old db to start clean + rm -f $REPO.db.tar.gz + repo-add -q $REPO.db.tar.gz *.pkg.tar.* +cd - |