diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index 6e28ae0..0b73fe9 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -1182,10 +1182,11 @@ // loaded by the user (e.g. the project and its subpackages), // so don't clean it. this.fromPath = null; - this.scanPackageFolder(this.packagePath, mgr, existing); } foreach (path; this.searchPath) this.scanPackageFolder(path, mgr, existing); + if (this.packagePath !is NativePath.init) + this.scanPackageFolder(this.packagePath, mgr, existing); } /**