#
#
def do_output(args, state):
- # update packages listings
- # XXX: perhaps we need a --[no]listing command line option to disable this from being run?
- pkg2html.update_package_listings(args, state.packages)
-
update_json = False
# for each arch
repology.annotate_packages(args, state.packages)
reports.do_reports(args, state.packages)
+ # update packages listings
+ # XXX: perhaps we need a --[no]listing command line option to disable this from being run?
+ pkg2html.update_package_listings(args, state.packages)
+
# if we are daemonized, allow force regeneration of static content in htdocs
# initially (in case the generation code has changed), but update that
# static content only as needed on subsequent loops
repo_browse_url = '/cgit/cygwin-packages/%s/' % pn
details_table['packaging repository'] = '<a href="%s">%s.git</a>' % (repo_browse_url, pn)
+ repology_pn = getattr(po, 'repology_project_name', None)
+ if repology_pn:
+ upstream_version = getattr(po, 'upstream_version', '')
+ details_table['repology info'] = '<a href="https://repology.org/project/%s/information">%s</a> (%s)' % (repology_pn, repology_pn, upstream_version)
+
if po.kind == package.Kind.binary:
doc_path = os.path.join(args.htdocs, 'doc', pn)
if os.path.exists(doc_path):