SOURCES: kernel-config.py - delete empty symbols from "inline" config

glen glen at pld-linux.org
Tue Feb 5 17:46:58 CET 2008


Author: glen                         Date: Tue Feb  5 16:46:58 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- delete empty symbols from "inline" config

---- Files affected:
SOURCES:
   kernel-config.py (1.13 -> 1.14) 

---- Diffs:

================================================================
Index: SOURCES/kernel-config.py
diff -u SOURCES/kernel-config.py:1.13 SOURCES/kernel-config.py:1.14
--- SOURCES/kernel-config.py:1.13	Tue Feb  5 01:03:32 2008
+++ SOURCES/kernel-config.py	Tue Feb  5 17:46:52 2008
@@ -102,7 +102,12 @@
     # inline symbols: for current arch, duplicates allowed
     if symbol.find('=') > 0:
         (symbol, value) = symbol.split('=')
-        dict[symbol] = value
+        # empty value means delete the symbol
+        if value == "":
+            if dict.has_key(symbol):
+                del dict[symbol]
+        else:
+            dict[symbol] = value
         continue
 
     hash = {}
================================================================

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



More information about the pld-cvs-commit mailing list