From ce82794c6429beec3e51c0a1664dd33927c09193 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 12 May 2020 22:30:57 +0200 Subject: [PATCH] koji-reset-staging: Try adjusting the script for koji 1.11 Signed-off-by: Pierre-Yves Chibon --- playbooks/manual/staging-sync/templates/koji-reset-staging.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql index 830cfb2ac9..65be94aa37 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -58,6 +58,7 @@ update build set volume_id=(select id from volume where name='prod') where volum -- delete files from incomplete builds to keep DB in sync with -- filesystem; these builds are on default (staging) volume and their -- files are not there; keeping rpminfo's ma +delete from archive_rpm_components where rpm_id in (select id from rpminfo where build_id in (select id from build where state<>1)); delete from rpminfo where build_id in (select id from build where state<>1); -- expire any active buildroots