|
charm: Fix bug #864164 - non-exec hooks
Changed ExpandTo() and BundleTo() to set
executable permissions while processing
charm hook files. In the case of BundleTo(),
as mentioned in the bug, a warning is issued
to the log about this, while in ExpandTo()
it happens silently.
Permissions of hooks are set executable by owner.
Added tests and a testing charm with all hooks
defined.
https://code.launchpad.net/~dimitern/juju-core/bug-864164-executable-hooks/+merge/148698
(do not edit description out of merge proposal)
Total comments: 10
Total comments: 32
Total comments: 7
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+196 lines, -5 lines) |
Patch |
|
M |
.bzrignore
|
View
|
1
2
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
[revision details]
|
View
|
1
2
3
4
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
charm/bundle.go
|
View
|
1
2
3
4
|
3 chunks |
+13 lines, -2 lines |
0 comments
|
Download
|
|
M |
charm/bundle_test.go
|
View
|
1
2
|
2 chunks |
+66 lines, -0 lines |
0 comments
|
Download
|
|
M |
charm/dir.go
|
View
|
1
2
3
4
|
3 chunks |
+11 lines, -2 lines |
0 comments
|
Download
|
|
M |
charm/dir_test.go
|
View
|
1
2
3
|
2 chunks |
+53 lines, -0 lines |
0 comments
|
Download
|
|
M |
charm/meta.go
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/bar-relation-broken
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/bar-relation-changed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/bar-relation-departed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/bar-relation-joined
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/config-changed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/foo-relation-broken
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/foo-relation-changed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/foo-relation-departed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/foo-relation-joined
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/install
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/otherdata
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/self-relation-broken
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/self-relation-changed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/self-relation-departed
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/self-relation-joined
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/start
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/stop
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/subdir/stuff
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/hooks/upgrade-charm
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/metadata.yaml
|
View
|
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
|
A |
testing/repo/series/all-hooks/revision
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 9
|