PackageKit/PackageKit-1.2.8-dnf-set_cache_age-300-seconds.patch
Silvan Calarco a30b67ebf7 add a patch to set-cache-age to 300 seconds instead of never refresh
update openmamba valid repos patch [release 1.2.8-3mamba;Sun Apr 07 2024]
2024-04-09 19:04:08 +02:00

12 lines
522 B
Diff

--- 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);