make pisi.api.install return a boolean.

fixes: #464
This commit is contained in:
Barış Metin
2005-09-08 23:55:04 +00:00
parent 9a106af9c2
commit b1f4655cb6
+2 -2
View File
@@ -68,9 +68,9 @@ def install(packages):
try:
# determine if this is a list of files/urls or names
if packages[0].endswith(ctx.const.package_prefix): # they all have to!
install_pkg_files(packages)
return install_pkg_files(packages)
else:
install_pkg_names(packages)
return install_pkg_names(packages)
except InstallError, e:
ctx.ui.error("%s\n" % e)