| | |
| | | sleep 1 |
| | | else |
| | | # Remove self from top of queue |
| | | echo 1 > $WAITLST_LCK |
| | | echo 1 > $WAITLIST_LCK |
| | | TEMP=$(mktemp) |
| | | tail -n +2 $WAITLIST > $TEMP |
| | | cp $TEMP $WAITLIST |
| | |
| | | rmlist="$rmlist $(comm -12 <(pacman -Slq $REPONAME | sort) <(pacman -Slq core | sort) | tr '\n' ' ')" |
| | | rmlist="$rmlist $(comm -12 <(pacman -Slq $REPONAME | sort) <(pacman -Slq extra | sort) | tr '\n' ' ')" |
| | | rmlist="$rmlist $(comm -12 <(pacman -Slq $REPONAME | sort) <(pacman -Slq community | sort) | tr '\n' ' ')" |
| | | removed=() |
| | | TMPFILE=$(mktemp) |
| | | for i in $(find $BUILDDIR -mindepth 1 -maxdepth 1 -type d); do |
| | | check_pkg $TMPFILE "$(echo $i | rev | cut -d'/' -f1 | rev)" & |