<PackageName>_ROOT vs <Package>_DIR

Actually, I think the docs are wrong. If PackageName_DIR is set, and there is a package file in that location, that will be used and no search will be performed at all. I’ll need to go through the code again more carefully to be sure, but the docs listing PackageName_DIR in step 3 of the search procedure looks to be an error.