index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Dan McGee <dan@archlinux.org> | 2010-08-23 17:42:22 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-08-23 17:42:22 -0500 |
commit | ce3f4e7800f215e8a2b6e22bbd5f5ec9e0de90c2 (patch) | |
tree | f2fa40f36f97e1f55ab2ceb84e258de5bb47b4b2 /lib | |
parent | 815557118318779f784e82a39497f46dde32845d (diff) |
-rw-r--r-- | lib/libalpm/alpm.c | 13 |
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index 51b9e25b..7bcfc8f1 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -23,6 +23,11 @@ #include "config.h" +/* connection caching setup */ +#if defined(INTERNAL_DOWNLOAD) +#include <fetch.h> +#endif + /* libalpm */ #include "alpm.h" #include "alpm_list.h" @@ -54,6 +59,10 @@ int SYMEXPORT alpm_initialize(void) bindtextdomain("libalpm", LOCALEDIR); #endif +#ifdef INTERNAL_DOWNLOAD + fetchConnectionCacheInit(5, 1); +#endif + return(0); } @@ -73,6 +82,10 @@ int SYMEXPORT alpm_release(void) _alpm_handle_free(handle); handle = NULL; +#ifdef INTERNAL_DOWNLOAD + fetchConnectionCacheClose(); +#endif + return(0); } |