Skip to content

Commit

Permalink
Merge pull request #393 from ros-infrastructure/fix_doc_unreleased_pk…
Browse files Browse the repository at this point in the history
…gtype

fix package type for repos without doc job
  • Loading branch information
dirk-thomas authored Mar 6, 2017
2 parents 97e82ac + 982e41c commit 2ea8784
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/doc/extract_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def get_metadata(distribution, pkg_name):
depends = pkg.build_depends + pkg.buildtool_depends + pkg.run_depends
data['depends'] = sorted(set([dep.name for dep in depends]))

is_metapackage = 'metapackage' in pkg.exports
is_metapackage = 'metapackage' in [e.tagname for e in pkg.exports]
data['package_type'] = 'metapackage' if is_metapackage else 'package'
if is_metapackage:
data['packages'] = sorted([dep.name for dep in pkg.run_depends])
Expand Down

0 comments on commit 2ea8784

Please sign in to comment.