churchyard / rpms / python38

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