diff options
author | Judd Vinet <judd@archlinux.org> | 2005-10-07 23:29:49 +0000 |
---|---|---|
committer | Judd Vinet <judd@archlinux.org> | 2005-10-07 23:29:49 +0000 |
commit | 5ef51b3e266cf43411947248886372001fdb207a (patch) | |
tree | 8d255349530045686053faacd1804502a96b269c /src/pacman/conf.c | |
parent | 79031ccd1a544475162facb8ca3d671f3464d1f8 (diff) |
Merging in recent fixes/additions from 2.9.7
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r-- | src/pacman/conf.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 7bf02d03..0aceecf2 100644 --- a/src/pacman/conf.c +++ b/src/pacman/conf.c @@ -159,6 +159,24 @@ int parseconfig(char *file) return(1); } vprint("config: noupgrade: %s\n", p); + } else if(!strcmp(key, "NOEXTRACT")) { + char *p = ptr; + char *q; + while((q = strchr(p, ' '))) { + *q = '\0'; + if(alpm_set_option(PM_OPT_NOEXTRACT, (long)p) == -1) { + ERR(NL, "failed to set option NOEXTRACT (%s)\n", alpm_strerror(pm_errno)); + return(1); + } + vprint("config: noextract: %s\n", p); + p = q; + p++; + } + if(alpm_set_option(PM_OPT_NOEXTRACT, (long)p) == -1) { + ERR(NL, "failed to set option NOEXTRACT (%s)\n", alpm_strerror(pm_errno)); + return(1); + } + vprint("config: noextract: %s\n", p); } else if(!strcmp(key, "IGNOREPKG")) { char *p = ptr; char *q; |