Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
Fix parsing problems when test_downstreams is called (#301)
Browse files Browse the repository at this point in the history
  • Loading branch information
isuruf authored Oct 16, 2022
1 parent b8fbbdf commit 45e1752
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion boa/cli/mambabuild.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ def parse_problems(problems):

for line in problems.splitlines():
line = line.strip()
words = line.split()
if not line.startswith("- "):
continue
if line.startswith("- - "):
line = line[2:]
words = line.split()
if "none of the providers can be installed" in line:
assert words[1] == "package", f"words = {repr(words)}"
assert words[3] == "requires", f"words = {repr(words)}"
Expand Down

0 comments on commit 45e1752

Please sign in to comment.