Commit ebe7f63
lib/composefs: Add error check for unsupported --download-only flag
The previous commit (c325582) added --download-only support for the
OSTree backend but did not add an error check for the composefs backend
where this feature is not yet implemented.
This commit adds a proper error message at the start of upgrade_composefs()
to explicitly bail out when --download-only is used, matching the pattern
used for other unsupported composefs features like --mutate-in-place and
edit operations.
Without this check, the flag would be silently ignored, potentially
causing confusion for users expecting download-only behavior.
Error message: "--download-only is not yet supported for composefs backend"
Signed-off-by: Wei Shi <wshi@redhat.com>1 parent c325582 commit ebe7f63
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
269 | 274 | | |
270 | 275 | | |
271 | 276 | | |
| |||
0 commit comments