Skip to content
Snippets Groups Projects
Commit 01be6ce5 authored by Antoine Lambert's avatar Antoine Lambert
Browse files

opam: Only capture stdout when calling 'opam list'

Ensure opam errors are displayed when attempting to list all packages
in order to ease debugging.

Related to swh/infra/sysadm-environment#4971.
parent d20803dd
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@
import logging
import os
import shutil
from subprocess import run
from subprocess import PIPE, run
from typing import Any, Dict, Iterator, Optional
from swh.lister.pattern import StatelessLister
......@@ -97,7 +97,7 @@ class OpamLister(StatelessLister[PageType]):
"--short",
],
env=self.env,
capture_output=True,
stdout=PIPE,
text=True,
check=True,
)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment