PackageKit/PackageKit-1.2.8-dnf-set_cache_age-300-seconds.patch

12 lines
522 B
Diff
Raw Normal View History

--- PackageKit-1.2.8/backends/dnf/pk-backend-dnf.c.orig 2024-04-07 12:37:38.941345425 +0200
+++ PackageKit-1.2.8/backends/dnf/pk-backend-dnf.c 2024-04-07 12:37:59.156395232 +0200
@@ -1706,7 +1706,7 @@
pk_backend_sack_cache_invalidate (backend, "downloaded new metadata");
/* We just downloaded our cache, avoid doing so again */
- pk_backend_job_set_cache_age(job, G_MAXUINT);
+ pk_backend_job_set_cache_age(job, 300);
/* regenerate the libsolv metadata */
state_local = dnf_state_get_child (job_data->state);