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

Message ID 20200830170748.203065-2-gdamjan@gmail.com
State Rejected, archived
Headers show
Series Introduce "AssumeInstalled" option in the config file | expand

Commit Message

Damjan Georgievski Aug. 30, 2020, 5:07 p.m. UTC
--assume-installed is already an option to transactions.
This change allow setting a list of packages in the config file.

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

Patch

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) {