r3533 - trunk/kernel/source/linux-2.6-2.6.12/debian/bin
Andres Salomon
dilinger at costa.debian.org
Sat Jul 16 03:31:36 UTC 2005
Author: dilinger
Date: 2005-07-16 03:31:36 +0000 (Sat, 16 Jul 2005)
New Revision: 3533
Modified:
trunk/kernel/source/linux-2.6-2.6.12/debian/bin/split.py
Log:
i am a python GOD
Modified: trunk/kernel/source/linux-2.6-2.6.12/debian/bin/split.py
===================================================================
--- trunk/kernel/source/linux-2.6-2.6.12/debian/bin/split.py 2005-07-16 03:15:56 UTC (rev 3532)
+++ trunk/kernel/source/linux-2.6-2.6.12/debian/bin/split.py 2005-07-16 03:31:36 UTC (rev 3533)
@@ -7,15 +7,14 @@
# file is parsed to remove the common config options found in
# config, with the results written to config.*.stub.
#
-import os, string, sys
+import os, string, sys, re
common = []
conffiles = []
def is_option(line):
- result = (string.count(line, '#') > 0)
- result = result or (len(string.strip(line)) == 0)
- return not result
+ result = (len(string.strip(line)) != 0) and (re.match('^#*\s*CONFIG_\w+[\s=]', line))
+ return result
def is_not_common(line):
return (line not in common)
More information about the Kernel-svn-changes
mailing list