Skip to content
This repository was archived by the owner on Aug 7, 2025. It is now read-only.

Commit ee42901

Browse files
William Douglasbryteise
authored andcommitted
Update output for bundle-list --orphans
Add informational line for how to cleanup orphan bundles to bundle-list --orphans. Signed-off-by: William Douglas <william.douglas@intel.com>
1 parent 5e60594 commit ee42901

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/cmds/bundle_list.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ enum swupd_code bundle_list_main(int argc, char **argv)
560560
ret = list_bundles();
561561
if (ret == SWUPD_OK && cmdline_option_orphans) {
562562
info("\nUse \"swupd bundle-add BUNDLE\" to no longer list BUNDLE and its dependencies as orphaned\n");
563+
info("\nUse \"swupd bundle-remove --orphans\" to delete all orphaned bundles\n");
563564
}
564565

565566
swupd_deinit();

test/functional/bundlelist/list-orphans.bats

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ teardown_file() {
4141
- test-bundle6
4242
Total: 2
4343
Use "swupd bundle-add BUNDLE" to no longer list BUNDLE and its dependencies as orphaned
44+
Use "swupd bundle-remove --orphans" to delete all orphaned bundles
4445
EOM
4546
)
4647
assert_is_output "$expected_output"
@@ -61,6 +62,7 @@ teardown_file() {
6162
- test-bundle6 (installed)
6263
Total: 2
6364
Use "swupd bundle-add BUNDLE" to no longer list BUNDLE and its dependencies as orphaned
65+
Use "swupd bundle-remove --orphans" to delete all orphaned bundles
6466
EOM
6567
)
6668
assert_is_output "$expected_output"
@@ -107,6 +109,7 @@ teardown_file() {
107109
- test-bundle6
108110
Total: 3
109111
Use "swupd bundle-add BUNDLE" to no longer list BUNDLE and its dependencies as orphaned
112+
Use "swupd bundle-remove --orphans" to delete all orphaned bundles
110113
EOM
111114
)
112115
assert_is_output "$expected_output"

0 commit comments

Comments
 (0)