diff options
author | Dan McGee <dan@archlinux.org> | 2007-08-20 19:28:51 +0200 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-08-20 21:23:46 +0200 |
commit | 17d9122e01f5a675f4c7882e68ceae65aae7b5aa (patch) | |
tree | 4f9f9a5099073c57c8ff4472ad9f9cead0b76272 /lib/libalpm/util.h | |
parent | 942175feaa866c4e536a7da0f77ab54de98b6c07 (diff) | |
download | pacman-17d9122e01f5a675f4c7882e68ceae65aae7b5aa.tar.gz pacman-17d9122e01f5a675f4c7882e68ceae65aae7b5aa.tar.xz |
Fix for FS 6404 and functionalize some cachedir handling stuff
In order to best resolve bug 6404, move some cachedir handling stuff out of
sync.c and into util.c and create two new functions: filecache_find and
filecache_setup. sync.c was rewritten to use these, and alpm_fetch_pkgurl
now also uses these routines.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r-- | lib/libalpm/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h index 8d84d87f..0dab0639 100644 --- a/lib/libalpm/util.h +++ b/lib/libalpm/util.h @@ -53,6 +53,8 @@ int _alpm_logaction(unsigned short usesyslog, FILE *f, const char *fmt, va_list int _alpm_ldconfig(const char *root); void _alpm_time2string(time_t t, char *buffer); int _alpm_str_cmp(const void *s1, const void *s2); +char *_alpm_filecache_find(const char *filename); +const char *_alpm_filecache_setup(void); #ifndef HAVE_STRVERSCMP static int strverscmp(const char *, const char *); |