SOURCES: kernel-config-update.py - simplify

glen glen at pld-linux.org
Tue Jan 29 02:16:10 CET 2008


Author: glen                         Date: Tue Jan 29 01:16:10 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- simplify

---- Files affected:
SOURCES:
   kernel-config-update.py (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SOURCES/kernel-config-update.py
diff -u SOURCES/kernel-config-update.py:1.8 SOURCES/kernel-config-update.py:1.9
--- SOURCES/kernel-config-update.py:1.8	Tue Jan 29 02:14:08 2008
+++ SOURCES/kernel-config-update.py	Tue Jan 29 02:16:05 2008
@@ -149,20 +149,16 @@
     if dict.has_key(symbol):
         c = dict[symbol]
         # if we have arch key, we use regardless there's 'all' present
-        if c.has_key('all') and c.has_key(arch):
+        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 c.has_key('all'):
-            c['all'] = value # actualy same value
-        else:
-            c[arch] = value # actually same value
+
         dict[symbol] = c
     else:
         # new symbol gets by default assigned to all
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/kernel-config-update.py?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list