mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-08 06:31:50 +00:00
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:
committed by
Otavio Pontes
parent
d0926942d1
commit
b73725fa0a
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user