From f6df027405b7667cb8ef0f5cc12a496d844294a4 Mon Sep 17 00:00:00 2001 From: Daniel Burrows Date: Wed, 24 Oct 2007 10:27:19 -0700 Subject: 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. --- src/pkg_info_screen.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/pkg_info_screen.cc') 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)); -- cgit v1.2.3