From 653e82b17c1af5295e5978a3c39e608e9fe8bf7b Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 12 May 2020 23:13:51 +0200 Subject: [PATCH] koji-reset-staging: Try adjusting the script for koji 1.11 - Take #2 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 65be94aa37..5a47c36d2c 100644 --- a/playbooks/manual/staging-sync/templates/koji-reset-staging.sql +++ b/playbooks/manual/staging-sync/templates/koji-reset-staging.sql @@ -59,6 +59,7 @@ update build set volume_id=(select id from volume where name='prod') where volum -- 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 image_listing 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