]> granicus.if.org Git - python/commitdiff
When doing a forced install of a package depending on a pseudo-package
authorJack Jansen <jack.jansen@cwi.nl>
Tue, 6 May 2003 12:44:00 +0000 (12:44 +0000)
committerJack Jansen <jack.jansen@cwi.nl>
Tue, 6 May 2003 12:44:00 +0000 (12:44 +0000)
you got a strange error message. Fixed.

Lib/plat-mac/pimp.py

index 0f42771f8806378ece49cab4a92bb881e866af0c..22ff34e011591c8ad4b9cc615c05ec2551fc7c5d 100644 (file)
@@ -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())]