diff options
author | Nathan Jones <nathanj@insightbb.com> | 2007-06-01 11:00:39 -0400 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-06-01 11:00:39 -0400 |
commit | 80237630af0b2241a8a756d7ed7d2be3f80cfec5 (patch) | |
tree | 739f3039f84de677b33f6b7b5f241edb2472ee3d /lib/libalpm/alpm.c | |
parent | cb9f046945b0365d7d29ee590a31a08bece1879c (diff) | |
download | pacman-80237630af0b2241a8a756d7ed7d2be3f80cfec5.tar.xz |
Change -z|--showsize flag to ShowSize pacman.conf option
Also cleaned up some duplicate printf lines related to the ShowSize option.
Signed-off-by: Nathan Jones <nathanj@insightbb.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/alpm.c')
-rw-r--r-- | lib/libalpm/alpm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libalpm/alpm.c b/lib/libalpm/alpm.c index d0f87462..33270149 100644 --- a/lib/libalpm/alpm.c +++ b/lib/libalpm/alpm.c @@ -958,6 +958,9 @@ int SYMEXPORT alpm_parse_config(char *file, alpm_cb_db_register callback, const } else if(strcmp(origkey, "UseColor") == 0 || strcmp(key, "USECOLOR") == 0) { alpm_option_set_usecolor(1); _alpm_log(PM_LOG_DEBUG, _("config: usecolor")); + } else if(strcmp(origkey, "ShowSize") == 0 || strcmp(key, "SHOWSIZE") == 0) { + alpm_option_set_showsize(1); + _alpm_log(PM_LOG_DEBUG, _("config: showsize")); } else { RET_ERR(PM_ERR_CONF_BAD_SYNTAX, -1); } |