From: Mikko Rasa Date: Sun, 22 Jul 2012 16:34:45 +0000 (+0300) Subject: Improve output from PackageManager::get_package_location X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=5fd0dd8b26ca8910901a750b3d6643c11cf0488e;p=builder.git Improve output from PackageManager::get_package_location --- 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");