[pacman-dev] [PATCH 1/1] AssumeInstalled option in the config file

Дамјан Георгиевски gdamjan at gmail.com
Sun Aug 30 17:07:48 UTC 2020


--assume-installed is already an option to transactions.
This change allow setting a list of packages in the config file.

Signed-off-by: Дамјан Георгиевски <gdamjan at gmail.com>
---
 etc/pacman.conf.in | 1 +
 src/pacman/conf.c  | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/etc/pacman.conf.in b/etc/pacman.conf.in
index 634ecc06..9be40179 100644
--- a/etc/pacman.conf.in
+++ b/etc/pacman.conf.in
@@ -25,6 +25,7 @@ Architecture = auto
 #IgnorePkg   =
 #IgnoreGroup =
 
+#AssumeInstalled =
 #NoUpgrade   =
 #NoExtract   =
 
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 3a3ef605..d02adc64 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -632,6 +632,8 @@ static int _parse_options(const char *key, char *value,
 			setrepeatingoption(value, "IgnoreGroup", &(config->ignoregrp));
 		} else if(strcmp(key, "HoldPkg") == 0) {
 			setrepeatingoption(value, "HoldPkg", &(config->holdpkg));
+		} else if(strcmp(key, "AssumeInstalled") == 0) {
+			setrepeatingoption(value, "AssumeInstalled", &(config->assumeinstalled));
 		} else if(strcmp(key, "CacheDir") == 0) {
 			setrepeatingoption(value, "CacheDir", &(config->cachedirs));
 		} else if(strcmp(key, "HookDir") == 0) {
-- 
2.28.0


More information about the pacman-dev mailing list