From 22f8dd1bf52d6afd2561b404c705dacca304e5a2 Mon Sep 17 00:00:00 2001 From: Faik Uygur Date: Tue, 10 Jun 2008 13:41:17 +0000 Subject: [PATCH] Check if repo satisfies or not before downloading and asking --- pisi/operations/install.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/operations/install.py b/pisi/operations/install.py index cb75da53..3107be59 100644 --- a/pisi/operations/install.py +++ b/pisi/operations/install.py @@ -219,6 +219,8 @@ def plan_install_pkg_names(A, ignore_package_conflicts = False): ctx.ui.debug('checking %s' % str(dep)) # we don't deal with already *satisfied* dependencies if not dependency.installed_satisfies_dep(dep): + if not dependency.repo_satisfies_dep(dep): + raise Exception(_('%s dependency of package %s is not satisfied') % (dep, pkg.name)) if not dep.package in G_f.vertices(): Bp.add(str(dep.package)) G_f.add_dep(x, dep)