]> git.pld-linux.org Git - packages/kernel.git/commitdiff
- catch lines where no value is set auto/ac/kernel-desktop-2_6_24_5-2 auto/ac/kernel-desktop-2_6_24_7-1 auto/ac/kernel-desktop-2_6_24_7-2 auto/ac/kernel-desktop-2_6_24_7-4 auto/th/kernel-desktop-2_6_24_5-1 auto/th/kernel-desktop-2_6_24_5-2 auto/th/kernel-desktop-2_6_24_7-1 auto/th/kernel-desktop-2_6_24_7-4 auto/th/kernel-desktop-2_6_24_7-5 auto/th/kernel-vanilla-2_6_24_4-1 auto/th/kernel-vanilla-2_6_24_5-1 auto/th/kernel-vanilla-2_6_25_4-1 auto/th/kernel-vanilla-2_6_25_5-1 auto/th/kernel-vanilla-2_6_26_1-1 auto/th/kernel-vanilla-2_6_26_3-1 auto/th/kernel-vanilla-2_6_26_3-2 auto/th/kernel-vanilla-2_6_26_5-1 auto/th/kernel-vanilla-2_6_27_3-0_1 auto/ti/kernel-desktop-2_6_24_7-1 auto/ti/kernel-desktop-2_6_24_7-2 auto/ti/kernel-desktop-2_6_24_7-3 auto/ti/kernel-vanilla-2_6_27_13-1 auto/ti/kernel-vanilla-2_6_27_3-0_1
authorElan Ruusamäe <glen@pld-linux.org>
Sat, 1 Mar 2008 12:53:13 +0000 (12:53 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    kernel-config.py -> 1.15

kernel-config.py

index 26b9bf62422183f2ca9b2e232de0df47cd0ef2a9..6e54460fa22aa809b9d635d32ac01c1a13db920b 100644 (file)
@@ -113,8 +113,13 @@ for l in f:
     hash = {}
     for item in c[1:]:
         try:
-            (key, value) = item.split('=')
-            hash[key] = value
+            try:
+                (key, value) = item.split('=')
+                hash[key] = value
+            except ValueError:
+                print "Invalid line: %s" % l.strip()
+                err = 1
+                continue
         except IndexError:
             print "Invalid line: %s" % l.strip()
             err = 1
This page took 0.597326 seconds and 4 git commands to generate.