Merge lp:~mabac/linaro-image-tools/qemu-version into lp:linaro-image-tools/11.11
Proposed by
Mattias Backman
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 451 | ||||
Proposed branch: | lp:~mabac/linaro-image-tools/qemu-version | ||||
Merge into: | lp:linaro-image-tools/11.11 | ||||
Diff against target: |
51 lines (+22/-2) 1 file modified
linaro_image_tools/media_create/__init__.py (+22/-2) |
||||
To merge this branch: | bzr merge lp:~mabac/linaro-image-tools/qemu-version | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Fathi Boudra | Pending | ||
linaro-image-tools maintainers | Pending | ||
Review via email: mp+79821@code.launchpad.net |
Description of the change
Hi,
This branch adds printing the version of qemu-arm-static along with the l-i-t version with the --version option.
It seems that argparse strips \n from the version string so the output is currently unreadable. Please let me know what you'd like the output to be and I'll try to make it happen.
Another slight inconvenience is that qemu-arm-static doesn't have a --version option which is the reason for the not so obvious implementation. I run qemu-arm-static --version with stdout piped to head -n 1 to get the first line of output. Just using the stdout pipe from the first Popen call didn't work since it closes as the command fails.
Thanks,
Mattias
To post a comment you must log in.
Heh, funny implementation of --version that is in qemu :-)
I don't think the output is unusable, so unless you can come up with
a way around that behaviour I think it can go in like this.
Thanks,
James