koji-reset-staging: Try adjusting the script for koji 1.11

Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
Pierre-Yves Chibon 2020-05-12 22:30:57 +02:00
parent 48fed84ddc
commit ce82794c64

View file

@ -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