Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(13478)

Issue 5706057: Bundle extraction in place should handle symlinks.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by hazmat
Modified:
12 years, 2 months ago
Reviewers:
mp+95098, bcsaller
Visibility:
Public.

Description

Previously extraction in place would fail on symlink extraction if the symlink already existed. As is this fix doesn't catch odder cases like directories changing into symlinks. But then neither did the previous extract in place. A longer term solution would be to have install manifests, and delta them against existing on disk state as part of charm upgrade. https://code.launchpad.net/~hazmat/juju/upgrade-sym-link/+merge/95098 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -5 lines) Patch
M juju/charm/bundle.py View 1 chunk +7 lines, -2 lines 0 comments Download
M juju/charm/tests/test_bundle.py View 3 chunks +13 lines, -3 lines 1 comment Download

Messages

Total messages: 2
hazmat
Please take a look.
12 years, 2 months ago (2012-02-29 03:55:21 UTC) #1
bcsaller
12 years, 2 months ago (2012-02-29 22:39:01 UTC) #2
lgtm

https://codereview.appspot.com/5706057/diff/1/juju/charm/tests/test_bundle.py
File juju/charm/tests/test_bundle.py (right):

https://codereview.appspot.com/5706057/diff/1/juju/charm/tests/test_bundle.py...
juju/charm/tests/test_bundle.py:178: os.symlink('./metadata.yaml', sym_path)
why ./ here rather than a bare filename?
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b