]> git.tdb.fi Git - builder.git/blobdiff - source/lib/package.h
Improve package brokenness checks and problem reporting
[builder.git] / source / lib / package.h
index d13aa737b985a71a8a99242445bb5915472c66d3..8e0c6924fc33b85b461cca7b808cc856237adde2 100644 (file)
@@ -38,6 +38,7 @@ protected:
        Requirements requires;
        BuildInfo export_binfo;
        bool prepared = false;
+       bool broken = false;
        std::vector<std::string> problems;
 
        bool use_pkgconfig = true;
@@ -66,6 +67,7 @@ protected:
 public:
        bool is_prepared() const { return prepared; }
 
+       bool is_broken() const { return broken; }
        const std::vector<std::string> &get_problems() const { return problems; }
 
        virtual void save_caches() { }