From 35a794c2ed4da7da44d3a04794fc90615e7c52e7 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Mon, 4 Jun 2007 14:50:16 -0400 Subject: Allow multiple CacheDirs to be specified This should hopefully allow multiple cache dirs to be specified in pacman.conf and/or on the command line, and allow pacman to test each one for the package file. The first one found to be writeable is used as the download cache. Signed-off-by: Dan McGee --- lib/libalpm/handle.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libalpm/handle.h') diff --git a/lib/libalpm/handle.h b/lib/libalpm/handle.h index 8e6003c0..b0e80338 100644 --- a/lib/libalpm/handle.h +++ b/lib/libalpm/handle.h @@ -50,7 +50,7 @@ typedef struct _pmhandle_t { alpm_cb_download dlcb; /* Download callback function */ char *root; /* Root path, default '/' */ char *dbpath; /* Base path to pacman's DBs */ - char *cachedir; /* Base path to pacman's cache */ + alpm_list_t *cachedirs; /* Paths to pacman cache directories */ char *logfile; /* Name of the file to log to */ /*TODO is this used?*/ char *lockfile; /* Name of the lock file */ unsigned short usesyslog; /* Use syslog instead of logfile? */ /* TODO move to frontend */ -- cgit v1.2.3