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

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