yellow team mailing list archive
-
yellow team
-
Mailing list archive
-
Message #00560
[Merge] lp:~frankban/python-shell-toolbox/helpers into lp:python-shell-toolbox
The proposal to merge lp:~frankban/python-shell-toolbox/helpers into lp:python-shell-toolbox has been updated.
Description changed to:
== Changes ==
- Added several helper functions:
- bzr_whois
- file_append
- file_prepend
- generate_ssh_keys
- get_su_command
- join_command
- mkdirs
- ssh
- user_exists
- Added `environ` context manager and updated `su` to use it.
- Changed `apt_get_install` helper: now the function uses environ to run dpkg
in non-interactive mode.
- Changed `get_user_home` to handle non-existent users
(returning a default home directory)
- Updated the `install_extra_repositories` helper to accept distribution
placeholders.
- Updated `cd` context manager: yield in a try/finally block.
- Fixed `grep` helper.
== Tests ==
python tests.py
.....................................................
----------------------------------------------------------------------
Ran 53 tests in 0.124s
OK
For more details, see:
https://code.launchpad.net/~frankban/python-shell-toolbox/helpers/+merge/96180
--
https://code.launchpad.net/~frankban/python-shell-toolbox/helpers/+merge/96180
Your team Launchpad Yellow Squad is requested to review the proposed merge of lp:~frankban/python-shell-toolbox/helpers into lp:python-shell-toolbox.
References