SF.net SVN: gar:[23487] csw/mgar/gar/v2/lib/python
wahwah at users.sourceforge.net
wahwah at users.sourceforge.net
Wed Apr 23 10:11:25 CEST 2014
Revision: 23487
http://sourceforge.net/p/gar/code/23487
Author: wahwah
Date: 2014-04-23 08:11:24 +0000 (Wed, 23 Apr 2014)
Log Message:
-----------
Maintainer activity: Filter out 'orphaned'
It's a fake user name.
Modified Paths:
--------------
csw/mgar/gar/v2/lib/python/activity.py
csw/mgar/gar/v2/lib/python/maintainer_activity_report.py
Modified: csw/mgar/gar/v2/lib/python/activity.py
===================================================================
--- csw/mgar/gar/v2/lib/python/activity.py 2014-04-23 08:11:13 UTC (rev 23486)
+++ csw/mgar/gar/v2/lib/python/activity.py 2014-04-23 08:11:24 UTC (rev 23487)
@@ -18,6 +18,9 @@
STALE_PACKAGE_CUTOFF = 4
STALE_FROM_COLOR = '#FFDDBB'
STALE_TO_COLOR = '#F995A0'
+MAINTAINER_STOPLIST = [
+ 'orphaned',
+]
def RevDeps(pkgs):
revdeps = {}
@@ -72,6 +75,8 @@
maintainers = {}
for entry in pkgs:
entry['maintainer'] = entry['maintainer'].split('@')[0]
+ if entry['maintainer'] in MAINTAINER_STOPLIST:
+ continue
parsed_fn = opencsw.ParsePackageFileName(entry['basename'])
dates_to_try = []
if 'REV' in parsed_fn['revision_info']:
Modified: csw/mgar/gar/v2/lib/python/maintainer_activity_report.py
===================================================================
--- csw/mgar/gar/v2/lib/python/maintainer_activity_report.py 2014-04-23 08:11:13 UTC (rev 23486)
+++ csw/mgar/gar/v2/lib/python/maintainer_activity_report.py 2014-04-23 08:11:24 UTC (rev 23487)
@@ -113,7 +113,8 @@
<tr class="border-bottom active-{{ maintainers[username].active }} retired-{{ maintainers[username].csw_db_status != 'Active' }} action-needed-{{ analysis_by_username[username].to_retire }}">
<td>
<a id="{{ username }}" class="maintainer"
- href="http://www.opencsw.org/maintainers/{{ username }}/">{{ username }}</a>
+ href="http://www.opencsw.org/maintainers/{{ username }}/"
+ title="{{ maintainers[username].fullname }}">{{ username }}</a>
</td>
<td>
{% if maintainers[username].date_created %}
@@ -191,7 +192,7 @@
for future in concurrent.futures.as_completed(key_by_future):
key = key_by_future[future]
if future.exception() is not None:
- logging.warning('Fetching %r failed', url)
+ logging.warning('Fetching %r failed:', key, future.exception())
else:
results_by_catrel[key] = future.result()
return results_by_catrel
@@ -242,6 +243,8 @@
for d in csw_db_maintainers:
# maintainer, fullname, status, date_created
username = d['maintainer']
+ if username in activity.MAINTAINER_STOPLIST:
+ continue
status = d['status']
date_created = None
if d['date_created']:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the devel
mailing list