]> git.tdb.fi Git - builder.git/commitdiff
Improve output from PackageManager::get_package_location
authorMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 16:34:45 +0000 (19:34 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sun, 22 Jul 2012 16:34:45 +0000 (19:34 +0300)
source/packagemanager.cpp

index fc198814591f3f90a70af0dedbd4636ec859b142..55498467d636a694f957e58a3dd475fd3b185b87 100644 (file)
@@ -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<string> files = list_files(*i);
+                       unsigned count = 0;
                        for(list<string>::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");