mirror of https://github.com/Chizi123/Arch-autobuild-repo.git

Joel Grunbaum
2020-10-15 7c40875bd5a8438e91d4ce60be114dd546c3386b
added database compression type to remove
1 files modified
5 ■■■■■ changed files
main.sh 5 ●●●●● patch | view | raw | blame | history
main.sh
@@ -106,7 +106,7 @@
        # Wait until package is at the top of the queue and add to db
        if [[ "$(head -n1 $REPODIR/.waitlist)" == "$1" ]]; then
            for i in ${pkgs[@]}; do
                repo-add $([[ "$SIGN" == "Y" ]] && echo "--sign --key $KEY") $REPODIR/$REPONAME.db.tar.$([ -n COMPRESSION ] || echo $COMPRESSION && echo zst) $REPODIR/$i
                repo-add $([[ "$SIGN" == "Y" ]] && echo "--sign --key $KEY") $REPODIR/$REPONAME.db.tar.$([ -n "$COMPRESSION" ] || echo $COMPRESSION && echo zst) $REPODIR/$i
            done
            while true; do
                if [[ $(cat $REPODIR/.waitlist.lck) == 1 ]]; then
@@ -209,7 +209,7 @@
function remove {
    for i in $@; do
        rm -rf $BUILDDIR/$i
        repo-remove $REPODIR/$REPONAME.db.tar.xz $i
        repo-remove $REPODIR/$REPONAME.db.tar.$([ -n "$COMPRESSION" ] || echo $COMPRESSION && echo zst) $i
        rm -f $REPODIR/*$i*
    done
}
@@ -295,4 +295,3 @@
else
    echo "All packages built successfully"
fi