From 6bd84b5ec826bf24681c31700df0b0b5285e9aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 12 Dec 2005 18:33:50 +0000 Subject: [PATCH] * fix: make --ignore-dependency work again --- pisi/build.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/build.py b/pisi/build.py index a63a8687..b4927f13 100644 --- a/pisi/build.py +++ b/pisi/build.py @@ -380,12 +380,11 @@ class Builder: if dep_unsatis: ctx.ui.info(_("Unsatisfied Build Dependencies:") + ' ' + util.strlist([str(x) for x in dep_unsatis]) ) - for dep in dep_unsatis: - if not dependency.repo_satisfies_dep(dep): - raise Error(_('Build dependency %s cannot be satisfied') % str(dep)) - ctx.ui.warning(str(dep)) if not ctx.config.get_option('ignore_dependency'): + for dep in dep_unsatis: + if not dependency.repo_satisfies_dep(dep): + raise Error(_('Build dependency %s cannot be satisfied') % str(dep)) if ctx.ui.confirm( _('Do you want to install the unsatisfied build dependencies')): ctx.ui.info(_('Installing build dependencies.'))