diff options
author | Britney Fransen <brfransen@gmail.com> | 2022-11-10 21:42:34 (GMT) |
---|---|---|
committer | Britney Fransen <brfransen@gmail.com> | 2022-11-10 21:42:34 (GMT) |
commit | 384f17fbd123dfcf68f35a764df157a8ace08d16 (patch) | |
tree | c6b8548f16775c3c7699ec11a0a2af2236424974 /linhes/linhes-dev/update_db_repo.sh | |
parent | 05fcbd3195c30dfcfb40f4e7e409ff3698a1d099 (diff) | |
download | linhes_pkgbuild-384f17fbd123dfcf68f35a764df157a8ace08d16.zip linhes_pkgbuild-384f17fbd123dfcf68f35a764df157a8ace08d16.tar.gz linhes_pkgbuild-384f17fbd123dfcf68f35a764df157a8ace08d16.tar.bz2 |
linhes-dev: tools to build packages for linhes
Diffstat (limited to 'linhes/linhes-dev/update_db_repo.sh')
-rwxr-xr-x | linhes/linhes-dev/update_db_repo.sh | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/linhes/linhes-dev/update_db_repo.sh b/linhes/linhes-dev/update_db_repo.sh new file mode 100755 index 0000000..b277a1f --- /dev/null +++ b/linhes/linhes-dev/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 "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 - |