mirror of
https://github.com/clearlinux/swupd-client.git
synced 2026-09-07 22:21:32 +00:00
When adding a 3rd-party repo, if the repo cannot be added it is reverted back. However if a user uses an incorrect URL that hangs and the user cancels the process, the repo add is never rolled back, which will cause the invalid repo to be left in the system. This commit fixes the issue by making sure the repo is reachable and somewhat valid before adding it to the config file. Closes #1384 Signed-off-by: Castulo Martinez <castulo.martinez@intel.com>