diff --git a/pisi/atomicoperations.py b/pisi/atomicoperations.py index 73c95870..2cbfb564 100644 --- a/pisi/atomicoperations.py +++ b/pisi/atomicoperations.py @@ -143,9 +143,8 @@ class Install(AtomicOperation): # check dependencies if not ctx.config.get_option('ignore_dependency'): if not self.pkginfo.installable(): - ctx.ui.error(_('Dependencies for %s not satisfied') % - self.pkginfo.name) - raise Error(_("Package not installable")) + raise Error(_("%s package cannot be installed unless the dependencies are satisfied") % + self.pkginfo.name) # check if package is in database # If it is not, put it into 3rd party packagedb diff --git a/pisi/dependency.py b/pisi/dependency.py index 416a6360..10b008dd 100644 --- a/pisi/dependency.py +++ b/pisi/dependency.py @@ -104,8 +104,8 @@ dependency spec""" def satisfies_dependencies(pkg, deps, sat = installed_satisfies_dep): for dep in deps: if not sat(dep): - ctx.ui.error(_('Package %s does not satisfy dependency %s') % - (pkg,dep)) + ctx.ui.error(_('%s dependency of package %s is not satisfied') % + (dep, pkg)) return False return True