]> git.tdb.fi Git - builder.git/blobdiff - source/lib/tool.h
Improve package brokenness checks and problem reporting
[builder.git] / source / lib / tool.h
index b756563242ba4099152f0ce125bd93a6504d9ffb..a6bd322a762b0bce5ccc609990870efe1c78a030 100644 (file)
@@ -142,6 +142,7 @@ protected:
        virtual void do_prepare(ToolData &) const { }
 
 public:
+       bool is_broken() const { return !problems.empty(); }
        const std::vector<std::string> &get_problems() const { return problems; }
 
        /** Invokes the tool to build a target.  This should not be called directly;