[OS-BUILD PATCHv3 4/4] redhat/configs: modify merge.py to match old overrides input

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Clark Williams <williams@xxxxxxxxxx>

redhat/configs:  modify merge.py to match old overrides input

Change overrides file input to only use the first instance of a
config that is specified and ignore any duplicates encountered
after that.

Suggested-by: Herton R. Krzesinski <herton@xxxxxxxxxx>
Signed-off-by: Clark Williams <williams@xxxxxxxxxx>

diff --git a/redhat/configs/merge.py b/redhat/configs/merge.py
index blahblah..blahblah 100755
--- a/redhat/configs/merge.py
+++ b/redhat/configs/merge.py
@@ -60,7 +60,8 @@ if len(sys.argv) == 4:
 overrides = {}
 with open(override_file, "rt", encoding="utf-8") as f:
     for line in [l.strip() for l in f.readlines()]:
-        if c := find_config(line):
+        c = find_config(line)
+        if c and c not in overrides:
             overrides[c] = line
 
 # now read and print the base config, checking each line

--
https://gitlab.com/cki-project/kernel-ark/-/merge_requests/2262
_______________________________________________
kernel mailing list -- kernel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to kernel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/kernel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam, report it: https://pagure.io/fedora-infrastructure/new_issue




[Index of Archives]     [Fedora General Discussion]     [Older Fedora Users Archive]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [USB]     [Asterisk PBX]

  Powered by Linux