Merge lp:~fginther/codetree/fix-charm-symlinks into lp:codetree
Proposed by
Francis Ginther
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | 64 | ||||
Proposed branch: | lp:~fginther/codetree/fix-charm-symlinks | ||||
Merge into: | lp:codetree | ||||
Diff against target: |
61 lines (+5/-6) 3 files modified
codetree/handlers/charm.py (+2/-3) debian/control (+1/-1) tests/test_charm_handler.py (+2/-2) |
||||
To merge this branch: | bzr merge lp:~fginther/codetree/fix-charm-symlinks | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Tim Kuhlman (community) | Approve | ||
Review via email: mp+296278@code.launchpad.net |
Commit message
Use a subproccess call to unzip instead of the zipfile module to avoid corrupting symlinks.
Description of the change
Use a subproccess call to unzip instead of the zipfile module to avoid corrupting symlinks.
Testing:
Created a config file consisting of:
postgresql cs:trusty/
and verified that when executed, the symlinks under the postgresql/hooks directory exist. Prior to this change they are extracted as regular files containing the symlink target as the content of the file.
To post a comment you must log in.
Thanks! I am adding "stderr= subprocess. STDOUT" so the test output remains clean.