summaryrefslogtreecommitdiffstats
path: root/Lib/plat-mac
diff options
context:
space:
mode:
authorJack Jansen <jack.jansen@cwi.nl>2003-05-06 12:44:00 (GMT)
committerJack Jansen <jack.jansen@cwi.nl>2003-05-06 12:44:00 (GMT)
commit705553acabe1db64097bbc1bea3b81ff6d8c04f7 (patch)
treefc87fd747551355cd381282d87826fb51f511311 /Lib/plat-mac
parent8657845e02b1cd4e2e87ae85f538c66160ec187f (diff)
downloadcpython-705553acabe1db64097bbc1bea3b81ff6d8c04f7.zip
cpython-705553acabe1db64097bbc1bea3b81ff6d8c04f7.tar.gz
cpython-705553acabe1db64097bbc1bea3b81ff6d8c04f7.tar.bz2
When doing a forced install of a package depending on a pseudo-package
you got a strange error message. Fixed.
Diffstat (limited to 'Lib/plat-mac')
-rw-r--r--Lib/plat-mac/pimp.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/Lib/plat-mac/pimp.py b/Lib/plat-mac/pimp.py
index 0f42771..22ff34e 100644
--- a/Lib/plat-mac/pimp.py
+++ b/Lib/plat-mac/pimp.py
@@ -132,7 +132,7 @@ class PimpTarUnpacker(PimpUnpacker):
if skip:
names = [member.name for member in skip if member.name[-1] != '/']
if names:
- return "Not all files were unpacked: %s" % " ".join(names)
+ return "Not all files were unpacked: %s" % " ".join(names)
ARCHIVE_FORMATS = [
(".tar.Z", PimpTarUnpacker, None),
@@ -468,6 +468,11 @@ class PimpPackage:
rv = []
if not self._dict.get('Download-URL'):
+ # For pseudo-packages that are already installed we don't
+ # return an error message
+ status, _ = self.installed()
+ if status == "yes":
+ return []
return [(None,
"%s: This package cannot be installed automatically (no Download-URL field)" %
self.fullname())]