SOURCES: kernel-config-update.py - no need to rewrite "all", cleanups
glen
glen at pld-linux.org
Wed Feb 6 00:27:00 CET 2008
Author: glen Date: Tue Feb 5 23:27:00 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- no need to rewrite "all", cleanups
---- Files affected:
SOURCES:
kernel-config-update.py (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SOURCES/kernel-config-update.py
diff -u SOURCES/kernel-config-update.py:1.17 SOURCES/kernel-config-update.py:1.18
--- SOURCES/kernel-config-update.py:1.17 Tue Feb 5 21:45:32 2008
+++ SOURCES/kernel-config-update.py Wed Feb 6 00:26:54 2008
@@ -156,18 +156,17 @@
dict[i] = "#"
i += 1
+# compare kernel.conf and .config
+# add new items to kernel.conf
for symbol in dotdict.keys():
value = dotdict[symbol]
if dict.has_key(symbol):
c = dict[symbol]
+
# if we have arch key, we use regardless there's 'all' present
if c.has_key(arch):
c[arch] = value
elif c.has_key('all') and c['all'] != value:
- # turn 'all' to separate arch values
- for a in allarch:
- c[a] = c['all']
- del c['all']
# new value from this arch
c[arch] = value
elif not c.has_key('all'):
@@ -176,11 +175,10 @@
dict[symbol] = c
else:
- # new symbol gets by default assigned to all
+ # new symbol gets by default assigned to 'all'
c = {}
c['all'] = value
dict[symbol] = c
-# dict[symbol] = ('all', value)
f.close()
# printout time
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-config-update.py?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list