5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 888c0495ec | |||
| b2e1e411f1 | |||
| 21e67291b5 | |||
| 525fa34387 | |||
| 7e7cee6d11 |
Renamed from src/python/jw/pkg/cmds/distro/lib/rpm.py (Browse further)
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
| 888c0495ec |
lib.base: Add module
Add lib.base to provide basic definitions. For now, move the definiions of Result, Input and InputMode from ExecContext into lib.base. Having to import them from the ExecContect module is too heavy-handed for those simple types. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| b2e1e411f1 |
lib.pm.*.query_packages(): Make it non-interactive
lib.pm.query_packages() uses a TTY for doing its thing and outputs half-digested stuff to the terminal, fix that. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 21e67291b5 |
Fix: Decode run_cmd() result
Since commit Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 525fa34387 |
lib.pm: Add parameter ec: ExecContext to functions
Functions in lib.pm (i.e. run_dpkg(), run_rpm() and friends) also get an ExecContext-type parameter. Use them in lib/distros/*/Distro. Signed-off-by: Jan Lindemann <jan@janware.com> |
|||
| 7e7cee6d11 |
cmds.distro: Move all modules to lib
Functions abstracting the distribution are not only needed in the context of the distro subcommand, but also by other code, so make the bulk of the code abstracting the distribution available in some place more universally useful than below cmds.distro. This commit leaves the source files mostly unchanged. They are only patched to fix import paths, so that functionality is preserved. Refactoring the code from command-line API to library API will be done by the next commit. Signed-off-by: Jan Lindemann <jan@janware.com> |