[pacman-dev] [PATCH 3/3] pacman-conf: fix half-baked support for ILoveCandy

Eli Schwartz eschwartz at archlinux.org
Sun May 10 04:32:40 UTC 2020


This was only partially implemented in the original implementation.
`pacman-conf | grep ILoveCandy` would tell you if it was set, but
querying directly by name would not.

Signed-off-by: Eli Schwartz <eschwartz at archlinux.org>
---
 src/pacman/pacman-conf.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/pacman/pacman-conf.c b/src/pacman/pacman-conf.c
index d76c0985..463badf1 100644
--- a/src/pacman/pacman-conf.c
+++ b/src/pacman/pacman-conf.c
@@ -379,6 +379,8 @@ static int list_directives(void)
 			show_bool("VerbosePkgLists", config->verbosepkglists);
 		} else if(strcasecmp(i->data, "DisableDownloadTimeout") == 0) {
 			show_bool("DisableDownloadTimeout", config->disable_dl_timeout);
+		} else if(strcasecmp(i->data, "ILoveCandy") == 0) {
+			show_bool("ILoveCandy", config->chomp);
 		} else if(strcasecmp(i->data, "NoProgressBar") == 0) {
 			show_bool("NoProgressBar", config->noprogressbar);
 
-- 
2.26.2


More information about the pacman-dev mailing list