Blame SOURCES/00178-dont-duplicate-flags-in-sysconfig.patch

900f19
diff -r 39b9b05c3085 Lib/distutils/sysconfig.py
900f19
--- a/Lib/distutils/sysconfig.py	Wed Apr 10 00:27:23 2013 +0200
900f19
+++ b/Lib/distutils/sysconfig.py	Wed Apr 10 10:14:18 2013 +0200
900f19
@@ -362,7 +362,10 @@
900f19
                     done[n] = item = ""
900f19
                 if found:
900f19
                     after = value[m.end():]
900f19
-                    value = value[:m.start()] + item + after
900f19
+                    value = value[:m.start()]
900f19
+                    if item.strip() not in value:
900f19
+                        value += item
900f19
+                    value += after
900f19
                     if "$" in after:
900f19
                         notdone[name] = value
900f19
                     else:
900f19
diff -r 39b9b05c3085 Lib/sysconfig.py
900f19
--- a/Lib/sysconfig.py	Wed Apr 10 00:27:23 2013 +0200
900f19
+++ b/Lib/sysconfig.py	Wed Apr 10 10:14:18 2013 +0200
900f19
@@ -296,7 +296,10 @@
900f19
 
900f19
                 if found:
900f19
                     after = value[m.end():]
900f19
-                    value = value[:m.start()] + item + after
900f19
+                    value = value[:m.start()]
900f19
+                    if item.strip() not in value:
900f19
+                        value += item
900f19
+                    value += after
900f19
                     if "$" in after:
900f19
                         notdone[name] = value
900f19
                     else: