From 3a2a4b3775ae6c6676fc306b4b925cf3bc0da8a3 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Sat, 9 Dec 2006 17:47:46 +0000 Subject: [PATCH] - Removed useless error message line, improved the understandability. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit old --- acerhk paketi, versiyon 0.5.34, sürüm 3, inşa 20 kuruluyor Paket acerhk kernel bağımlılığını sağlamıyor. acerhk paketi için bağımlılıklar sağlanmadı Program sonlandırıldı. Paket kurulabilir durumda değil new --- acerhk paketi, versiyon 0.5.34, sürüm 3, inşa 20 kuruluyor kernel release 61 dependency of package acerhk is not satisfied Program sonlandırıldı. acerhk package cannot be installed unless the dependencies are satisfied --- pisi/atomicoperations.py | 5 ++--- pisi/dependency.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) 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