sculpt: avoid superfluous <installation> entries

The missing else statements resulted in the addition of a
superfluous <archive> node when installing an <index>, causing
warning messages by the depot-download subsytem.
This commit is contained in:
Norman Feske 2023-03-21 15:29:09 +01:00 committed by Christian Helmuth
parent fb1865eb91
commit 9be7ce54c2

View File

@ -42,9 +42,9 @@ struct Sculpt::Download_queue : Noncopyable
if (Depot::Archive::index(path))
gen_install_node("index", path);
if (Depot::Archive::image_index(path))
else if (Depot::Archive::image_index(path))
gen_install_node("image_index", path);
if (Depot::Archive::image(path))
else if (Depot::Archive::image(path))
gen_install_node("image", path);
else
xml.node("archive", [&] () {