From: Mikko Rasa Date: Thu, 29 Dec 2022 13:03:43 +0000 (+0200) Subject: Avoid preparing packages multiple times X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6f7e90a8567675a5d546cd3d6f81febebf3618b1;p=builder.git Avoid preparing packages multiple times --- diff --git a/source/lib/package.cpp b/source/lib/package.cpp index 10c2db0..2a4cf8f 100644 --- a/source/lib/package.cpp +++ b/source/lib/package.cpp @@ -18,11 +18,12 @@ void Package::prepare() if(prepared) return; + prepared = true; + for(Package *r: requires) r->prepare(); do_prepare(); - prepared = true; }