Skip to content

Commit bf9183e

Browse files
author
Moshe Zadka
committed
- distutils/command/install.py - make .get_outputs() produce a list of unique
filenames
1 parent 6aae5c3 commit bf9183e

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Lib/distutils/command/install.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,11 @@ def get_outputs (self):
529529
outputs = []
530530
for cmd_name in self.get_sub_commands():
531531
cmd = self.get_finalized_command(cmd_name)
532-
outputs.extend(cmd.get_outputs())
532+
# Add the contents of cmd.get_outputs(), ensuring
533+
# that outputs doesn't contain duplicate entries
534+
for filename in cmd.get_outputs():
535+
if filename not in outputs:
536+
outputs.append(filename)
533537

534538
return outputs
535539

Misc/NEWS

+4-1
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,13 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=<id>&group_id=5470&atid
146146

147147
- urllib.py - provide simple recovery/escape from apparent redirect recursion
148148

149-
- #129288 - urllib.py - chanign %02x to %02X in quoting
149+
- #129288 - urllib.py - changing %02x to %02X in quoting
150150

151151
- urllib.py - HTTPS now works with string URLs
152152

153+
- distutils/command/install.py - make .get_outputs() produce a list of unique
154+
filenames
155+
153156
What's New in Python 2.0?
154157
=========================
155158

0 commit comments

Comments
 (0)