paket kurulumları sırasında dependency problemi çıkığında traceback

yerine bir hata mesajı çıkartalım. insanlar denemeye başladığında korkmasınlar.
This commit is contained in:
Barış Metin
2005-08-01 00:36:59 +00:00
parent 98dc869536
commit cbd2d991f9
+9 -4
View File
@@ -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"""