Don't build a tree that is being packaged; the package() method must do it (if required).
authorCarl Hetherington <cth@carlh.net>
Sat, 19 Feb 2022 16:31:54 +0000 (17:31 +0100)
committerCarl Hetherington <cth@carlh.net>
Sat, 19 Feb 2022 16:32:01 +0000 (17:32 +0100)
commit1b9fcb5ab32d501a24f603d8a2e4fe8aff282e95
treef1762fb5fb23c017009b1fd8633f8ca08108af1f
parenta862b364888ff7b0cd30f6267309bab6ac56cdce
Don't build a tree that is being packaged; the package() method must do it (if required).

This is to make Linux builds more efficient; previously cdist
would build() everything (including the whole of DoM) and then
most linux package() methods would end up building it again
(making the build in build() redundant).

Now the cscript in DoM can call build() if necessary.

I'm a little bit worried that the environment is no longer preserved
during the final build(), but I'm unsure if this is necessary
anyway.
cdist