diff options
author | Daniel Burrows <dburrows@debian.org> | 2007-10-24 10:27:19 -0700 |
---|---|---|
committer | Daniel Burrows <dburrows@debian.org> | 2007-10-24 10:27:19 -0700 |
commit | f6df027405b7667cb8ef0f5cc12a496d844294a4 (patch) | |
tree | b3fee4e7f924b9887e85b4d10f7c34f803789690 /src/pkg_info_screen.cc | |
parent | d93d8c604a4f331f8c320138e045085c01885794 (diff) | |
download | aptitude-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.cc | 8 |
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)); |