levelSupported reports whether app supports installs at level.
(app string, level entities.InstallLevel)
| 120 | |
| 121 | // levelSupported reports whether app supports installs at level. |
| 122 | func levelSupported(app string, level entities.InstallLevel) bool { |
| 123 | for _, l := range entities.InstructionAppLevels(app) { |
| 124 | if l == level { |
| 125 | return true |
| 126 | } |
| 127 | } |
| 128 | return false |
| 129 | } |
| 130 | |
| 131 | // checkConflict refuses the install when a CAM-owned symlink for a *different* |
| 132 | // instruction already occupies the target. When the file belongs to the same |
no test coverage detected