From 6f7e90a8567675a5d546cd3d6f81febebf3618b1 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 29 Dec 2022 15:03:43 +0200 Subject: [PATCH] Avoid preparing packages multiple times --- source/lib/package.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.45.2