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.
This commit is contained in:
parent
d20803ddae
commit
01be6ce581
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue