summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-02-24 02:59:34 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-02-24 02:59:34 +0800
commit769aa2a462e366db12e582982969d60e5ef06394 (patch)
tree57d6c22b817b93c1218372f84abb2695c1d45897
parent84710daf812e33d1a3dbbbfcc150d793c5070048 (diff)
downloadaptitude-769aa2a462e366db12e582982969d60e5ef06394.tar.gz
Show package architecture
-rw-r--r--src/cmdline/cmdline_show.cc3
-rw-r--r--src/pkg_info_screen.cc2
2 files changed, 3 insertions, 2 deletions
diff --git a/src/cmdline/cmdline_show.cc b/src/cmdline/cmdline_show.cc
index 2a2238fd..de532346 100644
--- a/src/cmdline/cmdline_show.cc
+++ b/src/cmdline/cmdline_show.cc
@@ -423,13 +423,12 @@ cw::fragment *version_file_fragment(const pkgCache::VerIterator &ver,
ver.Section()?ver.Section():_("N/A")));
fragments.push_back(cw::fragf("%s%s%n", _("Maintainer: "),
rec.Maintainer().c_str()));
+ fragments.push_back(cw::fragf("%s%s%n", _("Architecture: "), pkg.Arch()));
fragments.push_back(cw::fragf("%s%s%n", _("Uncompressed Size: "),
SizeToStr(ver->InstalledSize).c_str()));
if(verbose>0)
{
- fragments.push_back(cw::fragf("%s%s%n", _("Architecture: "),
- ver.Arch()?ver.Arch():_("N/A")));
fragments.push_back(cw::fragf("%s%s%n", _("Compressed Size: "),
SizeToStr(ver->Size).c_str()));
fragments.push_back(cw::fragf("%s%s%n", _("Filename: "),
diff --git a/src/pkg_info_screen.cc b/src/pkg_info_screen.cc
index 507ead31..0e3d32b9 100644
--- a/src/pkg_info_screen.cc
+++ b/src/pkg_info_screen.cc
@@ -124,10 +124,12 @@ void pkg_grouppolicy_info::setup_package_info(const pkgCache::PkgIterator &pkg,
"%B%s%b%s%n"
"%B%s%b%s%n"
"%B%s%b%s%n"
+ "%B%s%b%s%n"
"%B%s%b%s%n",
_("Priority: "),pkgCache::VerIterator(ver).PriorityType()?pkgCache::VerIterator(ver).PriorityType():_("Unknown"),
_("Section: "),pkg.Section()?pkg.Section():_("Unknown"),
_("Maintainer: "),rec.Maintainer().c_str(),
+ _("Architecture: "), pkg.Arch(),
_("Compressed size: "), SizeToStr(ver->Size).c_str(),
_("Uncompressed size: "), SizeToStr(ver->InstalledSize).c_str(),
_("Source Package: "),