mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 15:23:48 +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 ();
|
g_autoptr(XbBuilderSource) source = xb_builder_source_new ();
|
||||||
|
|
||||||
FwupdRemote *remote = g_ptr_array_index (remotes, i);
|
FwupdRemote *remote = g_ptr_array_index (remotes, i);
|
||||||
if (!fwupd_remote_get_enabled (remote)) {
|
if (!fwupd_remote_get_enabled (remote))
|
||||||
g_debug ("remote %s not enabled, so skipping",
|
|
||||||
fwupd_remote_get_id (remote));
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
path = fwupd_remote_get_filename_cache (remote);
|
path = fwupd_remote_get_filename_cache (remote);
|
||||||
if (!g_file_test (path, G_FILE_TEST_EXISTS)) {
|
if (!g_file_test (path, G_FILE_TEST_EXISTS))
|
||||||
g_debug ("no %s, so skipping", path);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
|
||||||
|
|
||||||
/* generate all metadata on demand */
|
/* generate all metadata on demand */
|
||||||
if (fwupd_remote_get_kind (remote) == FWUPD_REMOTE_KIND_DIRECTORY) {
|
if (fwupd_remote_get_kind (remote) == FWUPD_REMOTE_KIND_DIRECTORY) {
|
||||||
|
Loading…
Reference in New Issue
Block a user