From bf9183ee3313b73642c2d1f1f6a534bf2fd881a7 Mon Sep 17 00:00:00 2001 From: Moshe Zadka Date: Sat, 31 Mar 2001 15:03:07 +0000 Subject: [PATCH] - distutils/command/install.py - make .get_outputs() produce a list of unique filenames --- Lib/distutils/command/install.py | 6 +++++- Misc/NEWS | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/Lib/distutils/command/install.py b/Lib/distutils/command/install.py index 6aee1b35d9ff..85c194c396a6 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 6b3450e70b4f..fd7ca7da5bbf 100644 --- a/Misc/NEWS +++ b/Misc/NEWS @@ -146,10 +146,13 @@ http://sourceforge.net/tracker/index.php?func=detail&aid=&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? ========================= -- 2.47.3