diff options
author | Richard Hughes <richard@hughsie.com> | 2019-07-19 15:01:49 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2020-01-08 14:24:01 +0000 |
commit | 54a616b8edb8391f90ae183989bd98aa87e26b14 (patch) | |
tree | 95de16662c6b7342a4800c5b0c89ab36b5d4cedb | |
parent | 17dac9c8ae7afc9dfb95b5ebd2fe183d0c3f32af (diff) |
Do not trigger an inotity event when the AppStream XML data is unchanged
We already call dnf_utils_refresh_repo_appstream() on startup, but only as
required. Remove the unconditional copy to speed up gnome-software startup.
-rw-r--r-- | backends/dnf/pk-backend-dnf.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/backends/dnf/pk-backend-dnf.c b/backends/dnf/pk-backend-dnf.c index 779896c2d..503a6eb0a 100644 --- a/backends/dnf/pk-backend-dnf.c +++ b/backends/dnf/pk-backend-dnf.c @@ -565,13 +565,6 @@ dnf_utils_add_remote (PkBackendJob *job, if (!ret) return FALSE; - /* update the AppStream copies in /var */ - for (guint i = 0; i < repos->len; i++) { - DnfRepo *repo = g_ptr_array_index (repos, i); - if (!dnf_utils_refresh_repo_appstream (repo, error)) - return FALSE; - } - /* done */ if (!dnf_state_done (state, error)) return FALSE; |