Commit 5d3b8c80 authored by Benjamin Winger's avatar Benjamin Winger

Made query display multiple homepages more nicely

parent 26720779
......@@ -38,12 +38,16 @@ def display_search_results(mods, summarize=True):
else:
installed_str = "not installed"
# If there are multiple URLs, remove any formatting from the pybuild and
# add padding
homepage_str = "\n ".join(newest.HOMEPAGE.split())
print(
"{} {}".format(green("*"), bright(newest.CMN)),
" {} {}".format(green("Latest version available:"), newest.MV),
" {} {}".format(green("Installed version: "), installed_str),
" {} {}".format(green("Size of files:"), download),
" {} {}".format(green("Homepage:"), newest.HOMEPAGE),
" {} {}".format(green("Homepage:"), homepage_str),
" {} {}".format(green("Description:"), newest.DESC),
" {} {}".format(green("License:"), " ".join(newest.LICENSE)),
sep="\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment