1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 07:48:50 -05:00

added support for the XFERCOMMAND option

This commit is contained in:
Aurelien Foret 2005-03-20 12:32:32 +00:00
parent 1ace50e2a8
commit 4744a2a764

View File

@ -38,6 +38,7 @@ extern char *pmo_dbpath;
extern list_t *pmo_holdpkg;
extern char *pmo_proxyhost;
extern unsigned short pmo_proxyport;
extern char *pmo_xfercommand;
extern unsigned short pmo_nopassiveftp;
extern list_t *pmc_syncs;
@ -190,9 +191,7 @@ int parseconfig(char *file)
if(*ptr == '/') {
ptr++;
}
if(pmo_dbpath) {
FREE(pmo_dbpath);
}
FREE(pmo_dbpath);
pmo_dbpath = strdup(ptr);
vprint("config: dbpath: %s\n", ptr);
} else if (!strcmp(key, "LOGFILE")) {
@ -201,6 +200,10 @@ int parseconfig(char *file)
return(1);
}
vprint("config: log file: %s\n", ptr);
} else if (!strcmp(key, "XFERCOMMAND")) {
FREE(pmo_xfercommand);
pmo_xfercommand = strndup(ptr, PATH_MAX);
vprint("config: xfercommand: %s\n", pmo_xfercommand);
} else if (!strcmp(key, "PROXYSERVER")) {
char *p;
if(pmo_proxyhost) {