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:
Castulo Martinez
2018-07-10 16:08:47 -07:00
committed by Matthew Johnson
parent 368c504a4d
commit 8dcc46edb3
4 changed files with 0 additions and 7 deletions
-3
View File
@@ -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