]> git.tdb.fi Git - builder.git/commitdiff
Avoid preparing packages multiple times
authorMikko Rasa <tdb@tdb.fi>
Thu, 29 Dec 2022 13:03:43 +0000 (15:03 +0200)
committerMikko Rasa <tdb@tdb.fi>
Thu, 29 Dec 2022 13:03:43 +0000 (15:03 +0200)
source/lib/package.cpp

index 10c2db01d307c47a357b790ef3dd73cda87c980e..2a4cf8f3303ef10ec9bc2d86cea7f48eb0ea27a1 100644 (file)
@@ -18,11 +18,12 @@ void Package::prepare()
        if(prepared)
                return;
 
+       prepared = true;
+
        for(Package *r: requires)
                r->prepare();
 
        do_prepare();
-       prepared = true;
 }