summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-06-14 12:16:09 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-06-14 12:16:09 +0800
commitded670f838446c753f9201b35fb87cb5757b515d (patch)
tree222a61c9ac3160d6e76d3d59b5e98d099423b2f6
parent498512e63f637dac11165529734df616e9f1eee0 (diff)
downloadaptitude-ded670f838446c753f9201b35fb87cb5757b515d.tar.gz
Use arch-qualified names for virtual packages in more places
-rw-r--r--NEWS5
-rw-r--r--src/cmdline/cmdline_action.cc25
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];
}