Merge lp:~salgado/linaro-image-tools/port-ensure_command into lp:linaro-image-tools/11.11
Proposed by
Guilherme Salgado
Status: | Merged |
---|---|
Approved by: | Martin Ohlsson |
Approved revision: | 171 |
Merged at revision: | 172 |
Proposed branch: | lp:~salgado/linaro-image-tools/port-ensure_command |
Merge into: | lp:linaro-image-tools/11.11 |
Prerequisite: | lp:~salgado/linaro-image-tools/port-create_boot_cmd |
Diff against target: |
119 lines (+55/-17) 3 files modified
linaro-media-create (+12/-17) media_create/ensure_command.py (+17/-0) media_create/tests/test_media_create.py (+26/-0) |
To merge this branch: | bzr merge lp:~salgado/linaro-image-tools/port-ensure_command |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Ohlsson (community) | Approve | ||
Review via email: mp+41579@code.launchpad.net |
Description of the change
Port ensure_command to python.
I've used os.system() to call 'which' and 'apt-get', but I'm happy to change that to a subprocess.Popen() if anybody feels it's worth doing so.
To post a comment you must log in.
Hi Guilherme,
I think code looks fine. I had to do some reading on context managers to be able to fully understand it ;)
/Martin