summaryrefslogtreecommitdiff
path: root/src/pkg_info_screen.cc
diff options
context:
space:
mode:
authorDaniel Burrows <dburrows@debian.org>2007-10-24 10:27:19 -0700
committerDaniel Burrows <dburrows@debian.org>2007-10-24 10:27:19 -0700
commitf6df027405b7667cb8ef0f5cc12a496d844294a4 (patch)
treeb3fee4e7f924b9887e85b4d10f7c34f803789690 /src/pkg_info_screen.cc
parentd93d8c604a4f331f8c320138e045085c01885794 (diff)
downloadaptitude-f6df027405b7667cb8ef0f5cc12a496d844294a4.tar.gz
Add hypothetical support for homepages, once apt-pkg learns about them. (Closes: #445244)
Once the support is in apt-pkg, I might want to revisit this and add code to, e.g., run epiphany on the homepage of a package.
Diffstat (limited to 'src/pkg_info_screen.cc')
-rw-r--r--src/pkg_info_screen.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pkg_info_screen.cc b/src/pkg_info_screen.cc
index f76c01ed..42ba773a 100644
--- a/src/pkg_info_screen.cc
+++ b/src/pkg_info_screen.cc
@@ -1,6 +1,6 @@
// pkg_info_screen.cc
//
-// Copyright 2000-2002, 2004-2005 Daniel Burrows
+// Copyright 2000-2002, 2004-2005, 2007 Daniel Burrows
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -95,6 +95,12 @@ void pkg_grouppolicy_info::setup_package_info(const pkgCache::PkgIterator &pkg,
_("Description: "), shortdesc.c_str())));
frags.push_back(indentbox(2, 2, make_desc_fragment(desc)));
+#ifdef APT_HAS_HOMEPAGE
+ if(rec.Homepage() != "")
+ frags.push_back(dropbox(fragf("%B%s%b", _("Homepage: ")),
+ hardwrapbox(text_fragment(rec.Homepage()))));
+#endif
+
fragment *tags = make_tags_fragment(pkg);
if(tags != NULL)
frags.push_back(fragf("%n%F", tags));