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

Signed-off-by: Дамјан Георгиевски <[email protected]>
---
 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

Reply via email to