]> git.tdb.fi Git - builder.git/blobdiff - source/analyzer.cpp
Adapt to changes in msppath
[builder.git] / source / analyzer.cpp
index 0db55c76b637942ba997bff9b2ee90d05237e58b..f694edb96198494aadcceeb258950417bb708c90 100644 (file)
@@ -9,6 +9,7 @@ Distributed under the LGPL
 #include <iostream>
 #include <sstream>
 #include <msp/path/path.h>
+#include <msp/path/utils.h>
 #include "analyzer.h"
 #include "builder.h"
 #include "install.h"
@@ -70,7 +71,7 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth)
        if(full_paths)
                fn=tgt.get_name();
        else
-               fn=Path::Path(tgt.get_name())[-1];
+               fn=basename(tgt.get_name());
        row.push_back(string(depth*2, ' ')+fn);
 
        const Package *pkg=tgt.get_package();