mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-05 23:19:50 +00:00
trivial: fu-engine: don't show information for disabled remotes
This commit is contained in:
parent
39bd45f4f7
commit
933e43005f
@ -3249,16 +3249,11 @@ fu_engine_load_metadata_store (FuEngine *self, FuEngineLoadFlags flags, GError *
|
||||
g_autoptr(XbBuilderSource) source = xb_builder_source_new ();
|
||||
|
||||
FwupdRemote *remote = g_ptr_array_index (remotes, i);
|
||||
if (!fwupd_remote_get_enabled (remote)) {
|
||||
g_debug ("remote %s not enabled, so skipping",
|
||||
fwupd_remote_get_id (remote));
|
||||
if (!fwupd_remote_get_enabled (remote))
|
||||
continue;
|
||||
}
|
||||
path = fwupd_remote_get_filename_cache (remote);
|
||||
if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
|
||||
g_debug ("no %s, so skipping", path);
|
||||
if (!g_file_test (path, G_FILE_TEST_EXISTS))
|
||||
continue;
|
||||
}
|
||||
|
||||
/* generate all metadata on demand */
|
||||
if (fwupd_remote_get_kind (remote) == FWUPD_REMOTE_KIND_DIRECTORY) {
|
||||
|
Loading…
Reference in New Issue
Block a user