commit 3d8db4854e4c48f622351db0d4348b925cc2f59a parent bb465a9506ca2a32505cd56c7dd89ca9ee7196ec Author: cfillion <cfillion@users.noreply.github.com> Date: Sun, 6 Dec 2015 21:03:14 -0500 append the version name to the download label Diffstat:
M | src/transaction.cpp | | | 6 | ++++-- |
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/transaction.cpp b/src/transaction.cpp @@ -107,11 +107,13 @@ void Transaction::cancel() void Transaction::install(Package *pkg) { - const string &url = pkg->lastVersion()->source(0)->url(); const Path path = installPath(pkg); + const string &url = pkg->lastVersion()->source(0)->url(); const string dbName = pkg->category()->database()->name(); + const string name = dbName + "\n" + pkg->name() + + " v" + pkg->lastVersion()->name(); - Download *dl = new Download("[" + dbName + "] " + pkg->name(), url); + Download *dl = new Download(name, url); dl->onFinish([=] { if(dl->status() != 200) { addError(dl->contents(), dl->name());