]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
- distutils/command/install.py - make .get_outputs() produce a list of unique
authorMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 15:03:07 +0000 (15:03 +0000)
committerMoshe Zadka <moshez@math.huji.ac.il>
Sat, 31 Mar 2001 15:03:07 +0000 (15:03 +0000)
                                 filenames

Lib/distutils/command/install.py
Misc/NEWS

index 6aee1b35d9ff0f5c2a20b7bcd77bcdac4990bbda..85c194c396a6cce336189a5d896b6cc7af7df38f 100644 (file)
@@ -529,7 +529,11 @@ class install (Command):
         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
 
index 6b3450e70b4f34526bfd26a0300b3239c3b0ec73..fd7ca7da5bbf8c62310f943a5665a64f60b43306 100644 (file)
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -146,10 +146,13 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid
 
 - 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?
 =========================