Commit d8ff4ca
committed
fix: strict marker semantics for cleanup, remove dead migration code
Round-4 review fix:
clean_incomplete_install() now uses STRICT marker-only semantics.
Used on the resolve/install path for the CURRENT target — absence of
.mcpp_ok unambiguously means the install attempt was incomplete.
A half-extracted dir with bin/ would otherwise escape cleanup and
corrupt subsequent installs.
clean_all_incomplete() (global scan via `mcpp self init`) keeps the
legacy-aware behavior: packages without marker but with legacy content
dirs are preserved for backward compatibility with pre-upgrade installs.
is_install_complete() retains the legacy fallback for read-only compat
in resolve_xpkg_path() — old packages are recognized as usable, but
this doesn't shield them from explicit cleanup on the install path.1 parent 8a2d003 commit d8ff4ca
1 file changed
Lines changed: 19 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
121 | | - | |
122 | | - | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
123 | 127 | | |
124 | 128 | | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | 129 | | |
136 | 130 | | |
137 | 131 | | |
| |||
142 | 136 | | |
143 | 137 | | |
144 | 138 | | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
145 | 142 | | |
146 | 143 | | |
147 | 144 | | |
148 | 145 | | |
149 | 146 | | |
150 | 147 | | |
151 | | - | |
152 | | - | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
153 | 157 | | |
154 | 158 | | |
155 | 159 | | |
| |||
0 commit comments