From ded670f838446c753f9201b35fb87cb5757b515d Mon Sep 17 00:00:00 2001 From: Daniel Hartwig Date: Thu, 14 Jun 2012 12:16:09 +0800 Subject: Use arch-qualified names for virtual packages in more places --- NEWS | 5 +++++ src/cmdline/cmdline_action.cc | 25 ++++++++++++++++--------- 2 files changed, 21 insertions(+), 9 deletions(-) diff --git a/NEWS b/NEWS index 5aab4b38..a6c48805 100644 --- a/NEWS +++ b/NEWS @@ -16,6 +16,11 @@ Version 0.6.9 "All in a days work" * Unified the way packages are selected from command line arguments. +- Cosmetic and UI bugs: + + * [cmdline]: Use arch-qualified names for virtual packages in + more places as this is what apt-utils do. + [5/11/2012] Version 0.6.8 "Never need a reason, never need a rhyme" diff --git a/src/cmdline/cmdline_action.cc b/src/cmdline/cmdline_action.cc index 8fa2eb62..4a8393cb 100644 --- a/src/cmdline/cmdline_action.cc +++ b/src/cmdline/cmdline_action.cc @@ -246,15 +246,19 @@ bool cmdline_applyaction(cmdline_pkgaction_type action, if(prv.OwnerPkg().CurrentVer()==prv.OwnerVer()) { if(verbose>0) - printf(_("Note: \"%s\", providing the virtual package\n \"%s\", is already installed.\n"), - prv.OwnerPkg().FullName(true).c_str(), pkg.Name()); + printf(_("Note: \"%s\", providing the virtual package\n" + " \"%s\", is already installed.\n"), + prv.OwnerPkg().FullName(true).c_str(), + pkg.FullName(true).c_str()); return true; } else if((*apt_cache_file)[prv.OwnerPkg()].InstVerIter(*apt_cache_file)==prv.OwnerVer()) { if(verbose>0) - printf(_("Note: \"%s\", providing the virtual package\n \"%s\", is already going to be installed.\n"), - prv.OwnerPkg().FullName(true).c_str(), pkg.Name()); + printf(_("Note: \"%s\", providing the virtual package\n" + " \"%s\", is already going to be installed.\n"), + prv.OwnerPkg().FullName(true).c_str(), + pkg.FullName(true).c_str()); return true; } } @@ -275,8 +279,9 @@ bool cmdline_applyaction(cmdline_pkgaction_type action, if(cands.size()==0) { if(!seen_in_first_pass) - printf(_("\"%s\" exists in the package database, but it is not a\nreal package and no package provides it.\n"), - pkg.Name()); + printf(_("\"%s\" exists in the package database, but it is not a\n" + "real package and no package provides it.\n"), + pkg.FullName(true).c_str()); return false; } else if(cands.size()>1) @@ -284,7 +289,7 @@ bool cmdline_applyaction(cmdline_pkgaction_type action, if(!seen_in_first_pass) { printf(_("\"%s\" is a virtual package provided by:\n"), - pkg.Name()); + pkg.FullName(true).c_str()); cmdline_show_pkglist(cands, term_metrics); printf(_("You must choose one to install.\n")); } @@ -294,8 +299,10 @@ bool cmdline_applyaction(cmdline_pkgaction_type action, { if(!seen_in_first_pass) { - printf(_("Note: selecting \"%s\" instead of the\n virtual package \"%s\"\n"), - cands[0].FullName(true).c_str(), pkg.Name()); + printf(_("Note: selecting \"%s\" instead of the\n" + "virtual package \"%s\"\n"), + cands[0].FullName(true).c_str(), + pkg.FullName(true).c_str()); } pkg = cands[0]; } -- cgit v1.2.3