summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorNathan Jones <nathanj@insightbb.com>2007-11-10 01:54:18 +0100
committerDan McGee <dan@archlinux.org>2007-11-11 16:46:09 +0100
commitb206af78e0e6d2ff3324f3b2dc333d1b4e54f5b9 (patch)
treeb4ad0b6a1830d1815d3dd257cd37ad7b033e1df8 /src/pacman/pacman.c
parent3312de65e642a7b6f2d853ce870910bddddf559d (diff)
downloadpacman-b206af78e0e6d2ff3324f3b2dc333d1b4e54f5b9.tar.gz
pacman-b206af78e0e6d2ff3324f3b2dc333d1b4e54f5b9.tar.xz
Add TotalDownload option.
This will be used in the next commit. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 2f916e2d..ede8c0a0 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -574,6 +574,9 @@ static int _parseconfig(const char *file, const char *givensection,
} else if(strcmp(key, "UseDelta") == 0 || strcmp(upperkey, "USEDELTA") == 0) {
alpm_option_set_usedelta(1);
pm_printf(PM_LOG_DEBUG, "config: usedelta\n");
+ } else if(strcmp(key, "TotalDownload") == 0 || strcmp(upperkey, "TOTALDOWNLOAD") == 0) {
+ config->totaldownload = 1;
+ pm_printf(PM_LOG_DEBUG, "config: totaldownload\n");
} else {
pm_printf(PM_LOG_ERROR, _("config file %s, line %d: directive '%s' not recognized.\n"),
file, linenum, key);