]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- delete empty symbols from "inline" config
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 5 Feb 2008 16:46:52 +0000 (16:46 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-config.py -> 1.14

kernel-config.py

index eb68d3da81321fa70ab6809108bb840315f51408..26b9bf62422183f2ca9b2e232de0df47cd0ef2a9 100644 (file)
@@ -102,7 +102,12 @@ for l in f:
     # 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 = {}
This page took 0.955733 seconds and 4 git commands to generate.