From cbd2d991f9517cb24bfcd478f32aa9a247fad262 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 1 Aug 2005 00:36:59 +0000 Subject: [PATCH] =?UTF-8?q?paket=20kurulumlar=C4=B1=20s=C4=B1ras=C4=B1nda?= =?UTF-8?q?=20dependency=20problemi=20=C3=A7=C4=B1k=C4=B1=C4=9F=C4=B1nda?= =?UTF-8?q?=20traceback=20yerine=20bir=20hata=20mesaj=C4=B1=20=C3=A7=C4=B1?= =?UTF-8?q?kartal=C4=B1m.=20insanlar=20denemeye=20ba=C5=9Flad=C4=B1=C4=9F?= =?UTF-8?q?=C4=B1nda=20korkmas=C4=B1nlar.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/toplevel.py | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pisi/toplevel.py b/pisi/toplevel.py index 504f8e99..f76f1457 100644 --- a/pisi/toplevel.py +++ b/pisi/toplevel.py @@ -29,10 +29,15 @@ from index import Index def install(packages): """install a list of packages (either files/urls, or names)""" # determine if this is a list of files/urls or names - if packages[0].endswith(const.package_prefix): # they all have to! - install_pkg_files(packages) - else: - install_pkg_names(packages) + try: + if packages[0].endswith(const.package_prefix): # they all have to! + install_pkg_files(packages) + else: + install_pkg_names(packages) + except packagedb.PackageDBError, e: + ui.error("PackageDBError: (%s)\n" % e) + ui.error("Package is not installable. Its very likely a dependency problem.\n") + def install_pkg_files(packages): """install a number of pisi package files"""