Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'calm/pkg2html.py')
-rwxr-xr-xcalm/pkg2html.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 2a0d25d..0e7778b 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -142,8 +142,7 @@ def update_package_listings(args, packages):
summaries = os.path.join(args.htdocs, 'summary')
ensure_dir_exists(args, summaries)
- mlist = maintainers.read(args, None)
- pkg_maintainers = maintainers.invert(mlist)
+ pkg_maintainers = maintainers.pkg_list(args.pkglist)
toremove = glob.glob(os.path.join(summaries, '*'))
@@ -262,11 +261,14 @@ def update_package_listings(args, packages):
es_po = arch_package(packages, es)
if not es_po:
es_po = po
+
m_pn = es_po.orig_name
- if 'ORPHANED' in pkg_maintainers[m_pn]:
+ if m_pn not in pkg_maintainers:
+ m = None
+ elif pkg_maintainers[m_pn].is_orphaned():
m = 'ORPHANED'
else:
- m = ', '.join(sorted(pkg_maintainers[m_pn]))
+ m = ', '.join(sorted(pkg_maintainers[m_pn].maintainers()))
if m:
print('<span class="detail">maintainer(s)</span>: %s ' % m, file=f)