From 9dd016001eafb69991661d4d8bda91906d51ed78 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Tue, 8 Jan 2008 15:49:52 -0600 Subject: Remove upgradedelay and all code associated with it It wasn't even implemented correctly, and it really doesn't have a use if packagers just do their job correctly anyway for a distro. Let's not try to solve a problem with the wrong solution now. Signed-off-by: Dan McGee --- src/pacman/pacman.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index 70ef7767..1b8724ba 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -689,11 +689,6 @@ static int _parseconfig(const char *file, const char *givensection, } else if (strcmp(key, "XferCommand") == 0 || strcmp(upperkey, "XFERCOMMAND") == 0) { alpm_option_set_xfercommand(ptr); pm_printf(PM_LOG_DEBUG, "config: xfercommand: %s\n", ptr); - } else if (strcmp(key, "UpgradeDelay") == 0 || strcmp(upperkey, "UPGRADEDELAY") == 0) { - /* The config value is in days, we use seconds */ - time_t ud = atol(ptr) * 60 * 60 *24; - alpm_option_set_upgradedelay(ud); - pm_printf(PM_LOG_DEBUG, "config: upgradedelay: %d\n", (int)ud); } else { pm_printf(PM_LOG_ERROR, _("config file %s, line %d: directive '%s' not recognized.\n"), file, linenum, key); -- cgit v1.2.3-24-g4f1b