diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index a45d80b..85a476e 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -1061,11 +1061,10 @@ NativePath[] paths; try { auto local_package_file = list_path ~ LocalPackagesFilename; - logDiagnostic("Looking for local package map at %s", local_package_file.toNativeString()); if (!existsFile(local_package_file)) return; - logDiagnostic("Try to load local package map at %s", local_package_file.toNativeString()); - auto packlist = jsonFromFile(list_path ~ LocalPackagesFilename); + logDiagnostic("Loading local package map at %s", local_package_file.toNativeString()); + auto packlist = jsonFromFile(local_package_file); enforce(packlist.type == Json.Type.array, LocalPackagesFilename ~ " must contain an array."); foreach (pentry; packlist) { try {