Hack to avoid 3 million key expansions by a simple string match
authorHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 18 Nov 2006 21:18:14 +0000 (21:18 +0000)
committerHolger Hans Peter Freyther <zecke@selfish.org>
Sat, 18 Nov 2006 21:18:14 +0000 (21:18 +0000)
lib/bb/data.py

index f3a43bc..707d280 100644 (file)
@@ -271,6 +271,9 @@ def expandKeys(alterdata, readdata = None):
         readdata = alterdata
 
     for key in keys(alterdata):
+        if not '${' in key:
+            continue
+
         ekey = expand(key, readdata)
         if key == ekey:
             continue