]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- bug: do not take "all" if arch key is present
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 4 Feb 2008 23:16:48 +0000 (23:16 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-config.py -> 1.12

kernel-config.py

index a723a666cc87311da6e149220fe7e99d8cb27941..4e5428b57b2fdfc0c49031bb5ac7c342ba53cc11 100644 (file)
@@ -2,6 +2,7 @@
 
 # Generate kernel .config file based on special kernel.conf rules file.
 # arekm@pld-linux.org
+# glen@pld-linux.org
 
 import sys
 import re
@@ -121,8 +122,9 @@ for l in f:
     # take arch line, otherwise fallback to 'all'
     if hash.has_key(arch):
         dict[symbol] = hash[arch]
-    if hash.has_key('all'):
-        dict[symbol] = hash['all']
+    else:
+        if hash.has_key('all'):
+            dict[symbol] = hash['all']
 
 f.close()
 
This page took 2.515195 seconds and 4 git commands to generate.