diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index abc5252..3b3f335 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -843,6 +843,7 @@ private Package store_(ubyte[] data, NativePath destination, in PackageName name, in Version vers) { + import dub.recipe.json : toJson; import std.range : walkLength; logDebug("Placing package '%s' version '%s' to location '%s'", @@ -929,7 +930,9 @@ if (pack.recipePath.head != defaultPackageFilename) // Storeinfo saved a default file, this could be different to the file from the zip. this.removeFile(pack.recipePath); - pack.storeInfo(); + auto app = appender!string(); + app.writePrettyJsonString(pack.recipe.toJson()); + this.writeFile(pack.recipePath.parentPath ~ defaultPackageFilename, app.data); addPackages(this.m_internal.localPackages, pack); return pack; }