]> git.ipfire.org Git - pakfire.git/commitdiff
repos: Configure better default refresh times
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 Aug 2023 05:40:44 +0000 (05:40 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 31 Aug 2023 05:44:12 +0000 (05:44 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
contrib/config/distros/ipfire3.conf
src/libpakfire/repo.c

index 1661f6a644b2d2550aba5857f044cf6166dbc8ff..572393ab3048b3aee4aa18e66802f05ac6bcc8f7 100644 (file)
@@ -19,6 +19,7 @@ source_dl     = https://source.ipfire.org/source-3.x/
 #      RWRaaNWeyenNh1oZpBodZpkl5Xlg2ATqvhyTcjbrwjOn0E3Q5Yh2tzbn
 #mirrors = https://pakfire.ipfire.org/distros/ipfire-3/repos/stable/mirrorlist?arch=%{arch}
 #priority = 500
+#refresh = 6h
 
 [repo:testing]
 description = IPFire 3 - testing
@@ -26,11 +27,13 @@ baseurl = https://pakfire.ipfire.org/files/repos/ipfire-3/testing/%{arch}
 #key = untrusted comment: IPFire 3 - testing
 #      RWTNUgpbDZpZZl8V4phD0Mz+0/UvRsC1MAp4G4EYXLhyPt0Hov+oHq3k
 priority = 100
+refresh = 10m
 
 [repo:bootstrap]
 description = Bootstrap Repository
 baseurl     = https://people.ipfire.org/~ms/bootstrap2/%{arch}/
 priority    = 1
+refresh     = 1w
 
 [repo:local]
 description = IPFire 3 - Locally Built Packages
index 11e2a65f1f2e54a9a39ca5a9b2aa88256f9f55a5..64639450112412e95b963f4a82fc47078ad7257e 100644 (file)
 #include <pakfire/string.h>
 #include <pakfire/util.h>
 
-// Refresh mirrorlists once a day
-#define REFRESH_AGE_MIRRORLIST                 24 * 3600
+// Refresh mirror lists once every 6 hours
+#define REFRESH_AGE_MIRRORLIST                 6 * 3600
 
-// Refresh repository metadata every 10 minutes
-#define REFRESH_AGE_METADATA                   600
+// Refresh repository metadata once every 2 hours
+#define REFRESH_AGE_METADATA                   2 * 3600
 
 struct pakfire_repo_appdata {
        char* description;