forked from in-toto/in-toto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Instead of `securesystemslib.process.run`, use `subprocess.run` directly. The former is only a thin wrapper over the latter, which provides no advantage in Py3-only times. * Copy `securesystemslib.process.run_duplicate_streams` to a helper in runlib. This function is really only needed internally by in-toto-run tooling, for which it was developped originally (in-toto#160). It does not have to be public API in securesystemslib. Moreover, the function is not trivial and there have been multiple related bugs, one of them still unresolved (see secure-systems-lab/securesystemslib#337). This patch allows us to deprecate `securesystemslib.process`, and fix or workaround related issue wrt the specific runlib use case. **Note to git historians:** run_duplicate_streams was originally removed from in-toto in in-toto/in-toto@29f063a, and now copied back from https://github.com/secure-systems-lab/securesystemslib/blob/v0.26.0/securesystemslib/process.py Signed-off-by: Lukas Puehringer <[email protected]>
- Loading branch information
Showing
2 changed files
with
164 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters