|
charm: Fix bug #864164 - non-exec hooks
Changed ExpandTo() to force executable permissions to hooks
which are lacking these permissions (setting --x--x--x only).
Added a check in BundleTo() to issue warnings if any hooks
are found to lack executable permissions, telling the user
juju will set --x--x--x for these hooks.
Also added tests for both changes. Only files inside hooks/
are checked, if they are named like hooks.
https://code.launchpad.net/~dimitern/juju-core/bug-864164-check-charm-hooks-are-executable/+merge/148071
(do not edit description out of merge proposal)
Total comments: 20
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+153 lines, --2 lines) |
Patch |
|
A |
[revision details]
|
View
|
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
charm/bundle.go
|
View
|
|
3 chunks |
+7 lines, -0 lines |
7 comments
|
Download
|
|
M |
charm/bundle_test.go
|
View
|
|
2 chunks |
+51 lines, -0 lines |
4 comments
|
Download
|
|
M |
charm/dir.go
|
View
|
|
3 chunks |
+12 lines, -0 lines |
7 comments
|
Download
|
|
M |
charm/dir_test.go
|
View
|
|
2 chunks |
+33 lines, -0 lines |
2 comments
|
Download
|
|
M |
charm/export_test.go
|
View
|
|
2 chunks |
+3 lines, -0 lines |
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
|
|
0 chunks |
+-1 lines, --1 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
|
|
0 chunks |
+-1 lines, --1 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: 6
|