When doing a forced install of a package depending on a pseudo-package

you got a strange error message. Fixed.
This commit is contained in:
Jack Jansen 2003-05-06 12:44:00 +00:00
parent 8657845e02
commit 705553acab
1 changed files with 6 additions and 1 deletions

View 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())]