From dd74bbb60cd3121669eced3add4eafc86ebb7634 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Wed, 2 May 2018 12:45:34 -0700 Subject: [PATCH] Do not insensitively load the DNFConf Do direct string matching instead of insensitive string matching. The insensitive load will break when someone tries to add something with capital letters twice. For example, the following will be allowed when it should not be: mixer repo add QtPy url mixer repo add QtPy url Do a regular load so the string comparison with upper-case names will work. Signed-off-by: Matthew Johnson --- builder/builder.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/builder.go b/builder/builder.go index dacc43c..6fd6100 100644 --- a/builder/builder.go +++ b/builder/builder.go @@ -1682,7 +1682,7 @@ func (b *Builder) AddRepo(repoInfo []string) error { return err } - DNFConf, err := ini.InsensitiveLoad(b.Config.Builder.DNFConf) + DNFConf, err := ini.Load(b.Config.Builder.DNFConf) if err != nil { return err }