summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2008-01-08 15:49:52 -0600
committerDan McGee <dan@archlinux.org>2008-01-08 15:49:52 -0600
commit9dd016001eafb69991661d4d8bda91906d51ed78 (patch)
treebbe1bf67880aa689d3b300db735fb4fa72adb24e /src
parenta24c323abadd7802a38d162a0015bbc4dc82f75d (diff)
downloadpacman-9dd016001eafb69991661d4d8bda91906d51ed78.tar.xz
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 <dan@archlinux.org>
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c5
1 files changed, 0 insertions, 5 deletions
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);