summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-21 22:11:07 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-07-21 22:11:07 (GMT)
commit40b2e839246aa74f08eea1c2abb60e5ca93ecab0 (patch)
tree17c5bc2782c5117588de20dae0db05cf7cae1218 /Mac
parenta7203d10375c9efa69b8a39f8a4c9f71c20f1e9e (diff)
downloadcpython-40b2e839246aa74f08eea1c2abb60e5ca93ecab0.zip
cpython-40b2e839246aa74f08eea1c2abb60e5ca93ecab0.tar.gz
cpython-40b2e839246aa74f08eea1c2abb60e5ca93ecab0.tar.bz2
We erronuously re-used the pimpinstaller object if there were multiple installs.
This lead to a duplication of error messages (and installs). Fixes #764615.
Diffstat (limited to 'Mac')
-rwxr-xr-xMac/Tools/IDE/PackageManager.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/Mac/Tools/IDE/PackageManager.py b/Mac/Tools/IDE/PackageManager.py
index 27cd239..2b27ac0 100755
--- a/Mac/Tools/IDE/PackageManager.py
+++ b/Mac/Tools/IDE/PackageManager.py
@@ -244,7 +244,6 @@ class PimpInterface:
def setuppimp(self, url):
self.pimpprefs = pimp.PimpPreferences()
self.pimpdb = pimp.PimpDatabase(self.pimpprefs)
- self.pimpinstaller = pimp.PimpInstaller(self.pimpdb)
if not url:
url = self.pimpprefs.pimpDatabase
try:
@@ -271,7 +270,6 @@ class PimpInterface:
self.pimpdb.close()
self.pimpprefs = None
self.pimpdb = None
- self.pimpinstaller = None
self.packages = []
def setuserinstall(self, onoff):
@@ -320,10 +318,11 @@ class PimpInterface:
def installpackage(self, sel, output, recursive, force):
pkg = self.packages[sel]
- list, messages = self.pimpinstaller.prepareInstall(pkg, force, recursive)
+ pimpinstaller = pimp.PimpInstaller(self.pimpdb)
+ list, messages = pimpinstaller.prepareInstall(pkg, force, recursive)
if messages:
return messages
- messages = self.pimpinstaller.install(list, output)
+ messages = pimpinstaller.install(list, output)
return messages
class PackageBrowser(PimpInterface):