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

Chizi123
2020-10-30 94852cd393687f955d352cf2a0686b3e802c4c9e
fixed working with zoom exception
1 files modified
20 ■■■■ changed files
main.sh 20 ●●●● patch | view | raw | blame | history
main.sh
@@ -81,6 +81,16 @@
    done
    while read -r -d '' x; do pkgs+=("$x"); done < <(printf "%s\0" "${ipkgs[@]}" | sort -uz)
    # Weird exceptions
    if [[ "$1" == "zoom" ]]; then
        rm zoom*_orig*
        for i in ${pkgs[@]}; do
            if [ -z "${i##*_orig*}" ]; then
                pkgs=(${pkgs[@]/$i})
            fi
        done
    fi
    #Move package to repodir and add to repo db
    #Dont change the database if rebuilt the same package at same release and version
    flag=0
@@ -99,16 +109,6 @@
        return;
    fi
    # Weird exceptions
    if [[ "$1" == "zoom" ]]; then
        rm zoom*_orig*.pkg.tar.xz
        for i in ${pkgs[@]}; do
            if [ -z "${i##*orig*}" ]; then
                pkgs=${pkgs[@]/$i}
            fi
        done
    fi
    # Add package to waiting list to be added to repo db
    while true; do
        if [[ $(cat $WAITLIST_LCK) == 1 ]]; then