diff --git a/source/dub/dub.d b/source/dub/dub.d index df11a65..97accde 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -715,7 +715,6 @@ auto tool = "dscanner"; auto tool_pack = m_packageManager.getBestPackage(tool); - if (!tool_pack) tool_pack = m_packageManager.getBestPackage(tool, "~master"); if (!tool_pack) { logInfo("Hint", Color.light_blue, "%s is not present, getting and storing it user wide", tool); tool_pack = fetch(tool, VersionRange.Any, defaultPlacementLocation, FetchOptions.none); @@ -1210,7 +1209,6 @@ { string packageName = type; auto template_pack = m_packageManager.getBestPackage(packageName); - if (!template_pack) template_pack = m_packageManager.getBestPackage(packageName, "~master"); if (!template_pack) { logInfo("%s is not present, getting and storing it user wide", packageName); template_pack = fetch(packageName, VersionRange.Any, defaultPlacementLocation, FetchOptions.none); @@ -1277,8 +1275,7 @@ auto tool = m_project.rootPackage.recipe.ddoxTool; if (tool.empty) tool = "ddox"; - auto tool_pack = m_packageManager.getBestPackage(tool, ">=0.0.0"); - if (!tool_pack) tool_pack = m_packageManager.getBestPackage(tool, "~master"); + auto tool_pack = m_packageManager.getBestPackage(tool); if (!tool_pack) { logInfo("%s is not present, getting and storing it user wide", tool); tool_pack = fetch(tool, VersionRange.Any, defaultPlacementLocation, FetchOptions.none);