Skip to content

Commit

Permalink
Merge pull request coreos#4869 from ianloic/allow-replacement-text
Browse files Browse the repository at this point in the history
  • Loading branch information
jlebon authored Mar 13, 2024
2 parents ae87efc + 96edaf8 commit 5441b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions rust/src/live.rs
Original file line number Diff line number Diff line change
Expand Up @@ -431,14 +431,14 @@ pub(crate) fn transaction_apply_live(
if !allow_replacement {
if pkgdiff.n_removed() > 0 {
return Err(anyhow!(
"packages would be removed: {}, enable replacement to override",
"packages would be removed: {}, allow replacement to override",
pkgdiff.n_removed()
)
.into());
}
if pkgdiff.n_modified() > 0 {
return Err(anyhow!(
"packages would be changed: {}, enable replacement to override",
"packages would be changed: {}, allow replacement to override",
pkgdiff.n_modified()
)
.into());
Expand Down
2 changes: 1 addition & 1 deletion tests/kolainst/destructive/apply-live
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ rpmostree_assert_status '.deployments|length == 2' \
if rpm-ostree apply-live 2>err.txt; then
fatal "live-removed foo"
fi
assert_file_has_content_literal err.txt 'packages would be removed: 1, enable replacement to override'
assert_file_has_content_literal err.txt 'packages would be removed: 1, allow replacement to override'
# Ensure remote error is stripped
assert_not_file_has_content_literal err.txt 'GDBus.Error'
rpm-ostree ex livefs --allow-replacement | tee out.txt
Expand Down

0 comments on commit 5441b8f

Please sign in to comment.