summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac/pimp.py
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-07-21 20:47:11 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-07-21 20:47:11 (GMT)
commit749f481478023f3aea9c2e7456240e84d8efe188 (patch)
treef77677c7d200fba659fd1730fee33f747944d70f /Lib/plat-mac/pimp.py
parente676c5ef3ed8a34431f1c30cf91ef67ab70c6d4e (diff)
downloadcpython-749f481478023f3aea9c2e7456240e84d8efe188.zip
cpython-749f481478023f3aea9c2e7456240e84d8efe188.tar.gz
cpython-749f481478023f3aea9c2e7456240e84d8efe188.tar.bz2
Backport from r23c1-branch:
Pimp crashed if you tried to install a non-installable package, in stead of printing a decent error message. Fixes #773450..
Diffstat (limited to 'Lib/plat-mac/pimp.py')
-rw-r--r--Lib/plat-mac/pimp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index b05767b..1b0ff21 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -585,8 +585,8 @@ class PimpPackage:
If output is given it should be a file-like object and it
will receive a log of what happened."""
- if not self._dict['Download-URL']:
- return "%s: This package needs to be installed manually (no Download-URL field)" % _fmtpackagename(self)
+ if not self._dict.get('Download-URL'):
+ return "%s: This package needs to be installed manually (no Download-URL field)" % self.fullname()
msg = self.downloadPackageOnly(output)
if msg:
return "%s: download: %s" % (self.fullname(), msg)