* show package repo

This commit is contained in:
Eray Özkural
2006-06-15 14:28:33 +00:00
parent ab979f8765
commit 48c4fd90f7
+2 -1
View File
@@ -64,6 +64,7 @@ class Install(AtomicOperation):
# find package in repository # find package in repository
repo = ctx.packagedb.which_repo(name) repo = ctx.packagedb.which_repo(name)
if repo: if repo:
ctx.ui.info(_("Package %s found in repository %s") % (name, repo))
repo = ctx.repodb.get_repo(repo) repo = ctx.repodb.get_repo(repo)
pkg = ctx.packagedb.get_package(name) pkg = ctx.packagedb.get_package(name)
@@ -75,7 +76,7 @@ class Install(AtomicOperation):
pkg_path = os.path.join(os.path.dirname(repo.indexuri.get_uri()), pkg_path = os.path.join(os.path.dirname(repo.indexuri.get_uri()),
str(pkg_uri.path())) str(pkg_uri.path()))
ctx.ui.debug(_("Package URI: %s") % pkg_path) ctx.ui.info(_("Package URI: %s") % pkg_path, verbose=True)
return Install(pkg_path, ignore_dep) return Install(pkg_path, ignore_dep)
else: else: