summaryrefslogtreecommitdiff
path: root/src/apk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/apk.c')
-rw-r--r--src/apk.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/apk.c b/src/apk.c
index 8d44b1f..e677e88 100644
--- a/src/apk.c
+++ b/src/apk.c
@@ -26,6 +26,8 @@
#include <openssl/engine.h>
#endif
+#include <fetch.h>
+
#include "apk_defines.h"
#include "apk_database.h"
#include "apk_applet.h"
@@ -367,6 +369,7 @@ int main(int argc, char **argv)
init_openssl();
setup_automatic_flags();
+ fetchConnectionCacheInit(16, 1);
optindex = 0;
while ((r = getopt_long(argc, argv, short_options,
@@ -554,5 +557,7 @@ int main(int argc, char **argv)
err:
if (ctx)
free(ctx);
+
+ fetchConnectionCacheClose();
return r;
}