diff --git a/source/dub/commandline.d b/source/dub/commandline.d index 6cfe40a..3cf5121 100644 --- a/source/dub/commandline.d +++ b/source/dub/commandline.d @@ -1879,7 +1879,7 @@ } else { try { dub.fetch(name, Dependency.any, location, fetchOpts); - logInfo("Finished", Color.green, "package fetched"); + logInfo("Finished", Color.green, "%s fetched", name.color(Mode.bold)); logInfo("Please note that you need to use `dub run ` or add it"); logInfo("to dependencies of your package to actually use/run it."); } diff --git a/source/dub/dub.d b/source/dub/dub.d index 786db30..529b685 100644 --- a/source/dub/dub.d +++ b/source/dub/dub.d @@ -794,13 +794,13 @@ packageId, ver, placement); return existing; } else { - logInfo("Removing %s %s to prepare replacement with a new version.", packageId, ver); + logInfo("Removing", Color.yellow, "%s %s to prepare replacement with a new version", packageId.color(Mode.bold), ver); if (!m_dryRun) m_packageManager.remove(existing); } } - if (reason.length) logInfo("Fetching", Color.yellow, "%s %s (%s)", packageId, ver, reason); - else logInfo("Fetching", Color.yellow, "%s %s", packageId, ver); + if (reason.length) logInfo("Fetching", Color.yellow, "%s %s (%s)", packageId.color(Mode.bold), ver, reason); + else logInfo("Fetching", Color.yellow, "%s %s", packageId.color(Mode.bold), ver); if (m_dryRun) return null; logDebug("Acquiring package zip file"); @@ -852,7 +852,7 @@ */ void remove(in Package pack) { - logInfo("Removing %s in %s", pack.name, pack.path.toNativeString()); + logInfo("Removing", Color.yellow, "%s (in %s)", pack.name.color(Mode.bold), pack.path.toNativeString()); if (!m_dryRun) m_packageManager.remove(pack); } @@ -915,7 +915,6 @@ foreach(pack; packages) { try { remove(pack); - logInfo("Removed %s, version %s.", package_id, pack.version_); } catch (Exception e) { logError("Failed to remove %s %s: %s", package_id, pack.version_, e.msg); logInfo("Continuing with other packages (if any)."); diff --git a/source/dub/packagemanager.d b/source/dub/packagemanager.d index 4244526..afab9de 100644 --- a/source/dub/packagemanager.d +++ b/source/dub/packagemanager.d @@ -633,7 +633,7 @@ logDebug("About to delete root folder for package '%s'.", pack.path); rmdirRecurse(pack.path.toNativeString()); - logInfo("Removed package: '%s'", pack.name); + logInfo("Removed", Color.yellow, "%s %s", pack.name.color(Mode.bold), pack.version_); } /// Compatibility overload. Use the version without a `force_remove` argument instead.