Fixing a bug removing a 3rd-party repo that fails

When removing a 3rd-party repository, if there is an error while setting
up the global variables of the repository, the error code is lost and
swupd reports as if the removal was successful even when it failed. This
commit fixes that issue.

Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>
This commit is contained in:
Castulo Martinez
2020-02-13 10:36:45 -08:00
committed by Otavio Pontes
parent d0926942d1
commit b73725fa0a
+2 -1
View File
@@ -120,7 +120,8 @@ enum swupd_code third_party_remove_main(int argc, char **argv)
}
/* set the appropriate content_dir and state_dir for the selected 3rd-party repo */
if (third_party_set_repo(repo, globals.sigcheck)) {
ret = third_party_set_repo(repo, globals.sigcheck);
if (ret) {
goto exit;
}