Commit 26e9cf88 authored by Holger Levsen's avatar Holger Levsen

reproducible Arch Linux: fix bug resulting in removed packages not to be removed from the DB

Signed-off-by: Holger Levsen's avatarHolger Levsen <holger@layer-acht.org>
parent ee369979
......@@ -69,7 +69,7 @@ update_archlinux_repositories() {
REMOVE_LIST="$REMOVE_LIST $REPO/$PKG"
rm -r --one-file-system $BASE/archlinux/$REPO/$PKG
echo "$(date -u) - $REPO/$PKG removed as it's gone from the Archlinux repositories."
SUITE="archlinux_$repo"
SUITE="archlinux_$REPO"
PKG_ID=$(query_db "SELECT id FROM sources WHERE distribution=$DISTROID AND name='$PKG' AND suite='$SUITE' AND architecture='$ARCH';")
if [ -n "${PKG_ID}" ] ; then
query_db "DELETE FROM results WHERE package_id='${PKG_ID}';"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment