Skip to content

Commit

Permalink
Gracefully handle python-only packages
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Oct 17, 2024
1 parent ffeb846 commit b0a3b33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/scripts/upstream_rebuilds.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ class Options:
debs = Path(sys.argv[1])
folder = Path(sys.argv[2] if len(sys.argv) > 2 else ".")

# bail out if folder doesn't contain package.xml
if not (folder / "package.xml").exists():
exit(1)

xml, file = _get_package_xml(folder)
pkg = parse_package_string(xml, filename=file)
pkg.evaluate_conditions(os.environ)
Expand Down

0 comments on commit b0a3b33

Please sign in to comment.