mirror of
ssh://git.janware.com/janware/proj/jw-pkg
synced 2026-04-28 13:55:24 +02:00
4 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b81406e11a | |||
| aebd9bb5e6 | |||
| 595995e084 | |||
| 81833e049a |
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| b81406e11a |
run_cmd() and friends: Make args a list[str]
This is a code maintenance commit: some run_xxx() helper functions take a string, some a list, and some just digest all arguments and pass them on as a list to exec() to be executed. That's highly inconsistent. This commit changes that to list-only. Except for the run_cmd() method of SSHClient, which is still run as a shell method, because, erm, it's a shell. Might be changed in the future for consistency reasons. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| aebd9bb5e6 |
jw.pkg.cmds.distro.lib.rpm.list_files(): Add function
Add a function list_files, which takes a package name and returns the contained files in a list. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 595995e084 |
jw.pkg.cmds: Replace split('\n') by splitlines()
splitlines() removes empty lines, so use it and save some lines of code. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 81833e049a |
jw.pkg.cmds.distro.lib.rpm: Add module
Add a place to bundle utilities for RPM-backed distributions. Signed-off-by: Jan Lindemann <jan@janware.com> |