mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-03 12:11:28 +00:00
Removing unnecesary code to untrack bundles
Every bundle includes a tracking file which tells the OS the bundle is installed, every bundle has this tracking file as part of its manifest. When removing a bundle from a system, all the files that are part of that bundle, and are not needed, for any other bundle are removed, including the tracking file. This patch removes a function call that is intended to remove the tracking bundle from the system, since it is not necessary, by the time the code calls that function, all files from the manifest that can be removed are already removed, and this includes the tracking file. This patch also modifies a few tests to reflect the change in the command output.
This commit is contained in:
committed by
Matthew Johnson
parent
368c504a4d
commit
8dcc46edb3
@@ -558,9 +558,6 @@ int remove_bundles(char **bundles)
|
||||
fprintf(stderr, "Deleting bundle files...\n");
|
||||
remove_files_in_manifest_from_fs(bundle_manifest);
|
||||
|
||||
fprintf(stderr, "Untracking bundle from system...\n");
|
||||
rm_bundle_file(bundle);
|
||||
|
||||
free_manifest(bundle_manifest);
|
||||
out_free_mom:
|
||||
free_manifest(current_mom);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
Deleting bundle files...
|
||||
Total deleted files: 1
|
||||
Untracking bundle from system...
|
||||
Successfully removed 1 bundle
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
Deleting bundle files...
|
||||
Total deleted files: 1
|
||||
Untracking bundle from system...
|
||||
Successfully removed 1 bundle
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
Removing bundle: test-bundle1
|
||||
Deleting bundle files...
|
||||
Total deleted files: 1
|
||||
Untracking bundle from system...
|
||||
Removing bundle: test-bundle2
|
||||
Deleting bundle files...
|
||||
Total deleted files: 1
|
||||
Untracking bundle from system...
|
||||
Successfully removed 2 bundles
|
||||
|
||||
Reference in New Issue
Block a user