Skip to content

Commit ee086d0

Browse files
authored
Merge pull request #257 from cgwalters/drop-touch-if-changed
cli: Drop `upgrade --touch-if-changed`
2 parents fad73f2 + b92bdb8 commit ee086d0

File tree

2 files changed

+6
-14
lines changed

2 files changed

+6
-14
lines changed

lib/src/cli.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ pub(crate) struct UpgradeOpts {
2828
#[clap(long)]
2929
pub(crate) quiet: bool,
3030

31-
#[clap(long)]
32-
pub(crate) touch_if_changed: Option<Utf8PathBuf>,
33-
3431
/// Check if an update is available without applying it.
3532
///
3633
/// This only downloads an updated manifest and image configuration (i.e. typically kilobyte-sized metadata)
@@ -376,9 +373,6 @@ async fn upgrade(opts: UpgradeOpts) -> Result<()> {
376373
}
377374
}
378375
if changed {
379-
if let Some(path) = opts.touch_if_changed {
380-
std::fs::write(&path, "").with_context(|| format!("Writing {path}"))?;
381-
}
382376
if opts.apply {
383377
crate::reboot::reboot()?;
384378
}

manpages-md/bootc-upgrade.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ bootc-upgrade - Download and queue an updated container image to apply
44

55
# SYNOPSIS
66

7-
**bootc-upgrade** \[**\--quiet**\] \[**\--touch-if-changed**\]
8-
\[**\--check**\] \[**\--apply**\] \[**-h**\|**\--help**\]
9-
\[**-V**\|**\--version**\]
7+
**bootc-upgrade** \[**\--quiet**\] \[**\--check**\] \[**\--apply**\]
8+
\[**-h**\|**\--help**\] \[**-V**\|**\--version**\]
109

1110
# DESCRIPTION
1211

@@ -31,13 +30,12 @@ outside of a \`bootc upgrade \--apply\` do \*not\* upgrade.
3130

3231
: Dont display progress
3332

34-
**\--touch-if-changed**=*TOUCH_IF_CHANGED*
35-
36-
:
37-
3833
**\--check**
3934

40-
: Check if an update is available without applying it
35+
: Check if an update is available without applying it.
36+
37+
This only downloads an updated manifest and image configuration (i.e.
38+
typically kilobyte-sized metadata) as opposed to the image layers.
4139

4240
**\--apply**
4341

0 commit comments

Comments
 (0)