summaryrefslogtreecommitdiffstats
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorNathan Jones <nathanj@insightbb.com>2007-10-19 19:17:53 +0200
committerDan McGee <dan@archlinux.org>2007-10-20 02:29:17 +0200
commite472e80c084c5e94fdc15d2f6565c50e65854372 (patch)
treecf19a2493d81696f04469385a837b9a7a739733b /src/pacman/pacman.c
parent520db578daf4dfe4863f9c32026460ada9131b78 (diff)
downloadpacman-e472e80c084c5e94fdc15d2f6565c50e65854372.tar.gz
pacman-e472e80c084c5e94fdc15d2f6565c50e65854372.tar.xz
Download delta files if UseDelta is set.
Delta files will be used if the size is smaller than a percent (MAX_DELTA_RATIO) of the package size. 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 8474020f..2f6f9280 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -548,6 +548,9 @@ static int _parseconfig(const char *file, const char *givensection,
} else if(strcmp(key, "ShowSize") == 0 || strcmp(upperkey, "SHOWSIZE") == 0) {
config->showsize = 1;
pm_printf(PM_LOG_DEBUG, "config: showsize\n");
+ } else if(strcmp(key, "UseDelta") == 0 || strcmp(upperkey, "USEDELTA") == 0) {
+ alpm_option_set_usedelta(1);
+ pm_printf(PM_LOG_DEBUG, "config: usedelta\n");
} else {
pm_printf(PM_LOG_ERROR, _("config file %s, line %d: directive '%s' not recognized.\n"),
file, linenum, key);