diff --git a/source/dub/dub.d b/source/dub/dub.d index 8ba2c94..2cb4918 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -344,7 +344,7 @@ auto clean_package_version = ver[ver.startsWith("~") ? 1 : 0 .. $]; Path dstpath = placement ~ (packageId ~ "-" ~ clean_package_version); - return m_packageManager.get(tempFile, pinfo, dstpath); + return m_packageManager.storeFetchedPackage(tempFile, pinfo, dstpath); } /// Removes a given package from the list of present/cached modules. diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index f20693b..80ec53a 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -198,10 +198,9 @@ return &iterator; } - /// Retrieves the package supplied as a path to it's zip file to the - /// destination. - // FIXNAME - Package get(Path zip_file_path, Json package_info, Path destination) + /// Extracts the package supplied as a path to it's zip file to the + /// destination and sets a version field in the package description. + Package storeFetchedPackage(Path zip_file_path, Json package_info, Path destination) { auto package_name = package_info.name.get!string(); auto package_version = package_info["version"].get!string();