Merge lp://staging/~mvo/snapcraft/run-and-exlode into lp://staging/~snappy-dev/snapcraft/core
Proposed by
Michael Vogt
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~mvo/snapcraft/run-and-exlode |
Merge into: | lp://staging/~snappy-dev/snapcraft/core |
Diff against target: |
37 lines (+5/-3) 2 files modified
snapcraft/common.py (+1/-1) snapcraft/meta.py (+4/-2) |
To merge this branch: | bzr merge lp://staging/~mvo/snapcraft/run-and-exlode |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | Needs Fixing | ||
Snappy Developers | Pending | ||
Review via email: mp+272386@code.staging.launchpad.net |
Description of the change
Tiny branch that makes common.run() use subprocess.
To post a comment you must log in.
Unmerged revisions
- 211. By Michael Vogt
-
use subprocess.
check_call( ) instead of call() to ensure proper errors are raised on failure
I think this is the right direction, but there seem to be other bits of code that at least need some checking. Anything that calls run() expecting a boolean needs to be checked. Quite a few plugin build and pull methods call run(), so these either need to stop expecting to return boolean or need to massage the exception into a boolean return. The code would likely be a lot easier to read when you're finished though ...