From 5fd0dd8b26ca8910901a750b3d6643c11cf0488e Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 22 Jul 2012 19:34:45 +0300 Subject: [PATCH] Improve output from PackageManager::get_package_location --- source/packagemanager.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/source/packagemanager.cpp b/source/packagemanager.cpp index fc19881..5549846 100644 --- a/source/packagemanager.cpp +++ b/source/packagemanager.cpp @@ -135,7 +135,7 @@ string PackageManager::run_pkgconfig(const string &pkg, const string &what) FS::Path PackageManager::get_package_location(const string &name) { - builder.get_logger().log("packagemgr", format("Looking for package %s", name)); + builder.get_logger().log("packagemgr", format("Looking for source package %s", name)); try { @@ -153,14 +153,21 @@ FS::Path PackageManager::get_package_location(const string &name) { builder.get_logger().log("files", format("Traversing %s", *i)); list files = list_files(*i); + unsigned count = 0; for(list::const_iterator j=files.begin(); j!=files.end(); ++j) { FS::Path full = *i / *j; if(FS::exists(full/"Build")) + { pkg_dirs.push_back(full); + ++count; + } } + + builder.get_logger().log("packagemgr", format("%d source packages found in %s", count, *i)); } - builder.get_logger().log("packagemgr", format("%d packages found in path", pkg_dirs.size())); + + builder.get_logger().log("packagemgr", format("%d source packages found", pkg_dirs.size())); } bool msp = !name.compare(0, 3, "msp"); -- 2.45.2