Skip to content

Instantly share code, notes, and snippets.

@dirk-thomas
Last active August 29, 2015 14:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirk-thomas/e9debd17f7fd4c69d85a to your computer and use it in GitHub Desktop.
Save dirk-thomas/e9debd17f7fd4c69d85a to your computer and use it in GitHub Desktop.
output all released package with maintainers still having willowgarage email addresses
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