summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 15:03:07 +0000
committerMoshe Zadka <moshez@math.huji.ac.il>2001-03-31 15:03:07 +0000
commitb79888215c66b4d4b62986ae2b8a85797978ee03 (patch)
tree21944f59bfca7c8071c21aecc717c26a3cf793dd
parent4dd7559799c1bd36a0db99f5082c4aba52fd5602 (diff)
downloadcpython-b79888215c66b4d4b62986ae2b8a85797978ee03.tar.gz
- distutils/command/install.py - make .get_outputs() produce a list of unique
filenames
-rw-r--r--Lib/distutils/command/install.py6
-rw-r--r--Misc/NEWS5
2 files changed, 9 insertions, 2 deletions
diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py
index 6aee1b35d9..85c194c396 100644
--- a/Lib/distutils/command/install.py
+++ b/Lib/distutils/command/install.py
@@ -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
diff --git a/Misc/NEWS b/Misc/NEWS
index 6b3450e70b..fd7ca7da5b 100644
--- 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?
=========================