Commits

Anonymous committed ef1223d

- distutils/command/install.py - make .get_outputs() produce a list of unique
filenames

Comments (0)

Files changed (2)

Lib/distutils/command/install.py

         outputs = []
         for cmd_name in self.get_sub_commands():
             cmd = self.get_finalized_command(cmd_name)
-            outputs.extend(cmd.get_outputs())
+            # Add the contents of cmd.get_outputs(), ensuring
+            # that outputs doesn't contain duplicate entries
+            for filename in cmd.get_outputs():
+                if filename not in outputs:
+                    outputs.append(filename)
 
         return outputs
 
 
 - urllib.py - provide simple recovery/escape from apparent redirect recursion
 
-- #129288 - urllib.py - chanign %02x to %02X in quoting
+- #129288 - urllib.py - changing %02x to %02X in quoting
 
 - urllib.py - HTTPS now works with string URLs
 
+- distutils/command/install.py - make .get_outputs() produce a list of unique 
+                                 filenames
+
 What's New in Python 2.0?
 =========================