Last active
August 29, 2015 14:04
-
-
Save dirk-thomas/e9debd17f7fd4c69d85a to your computer and use it in GitHub Desktop.
output all released package with maintainers still having willowgarage email addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from catkin_pkg.package import parse_package_string | |
import rosdistro | |
i = rosdistro.get_index(rosdistro.get_index_url()) | |
for distro in ['groovy', 'hydro', 'indigo']: | |
print(distro) | |
maintainers = {} | |
d = rosdistro.get_cached_distribution(i, distro) | |
f = d._distribution_file | |
for name in sorted(f.release_packages.keys()): | |
xml = d.get_release_package_xml(name) | |
if xml is None: | |
continue | |
try: | |
pkg = parse_package_string(xml) | |
for m in pkg.maintainers: | |
if 'willowgarage' in m.email: | |
if m.name not in maintainers: | |
maintainers[m.name] = set([]) | |
maintainers[m.name].add(pkg.name) | |
except Exception as e: | |
print(name, str(e)) | |
for m in sorted(maintainers.keys()): | |
print(m) | |
for pkg_name in sorted(maintainers[m]): | |
print('- %s' % pkg_name) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment