]> git.tdb.fi Git - builder.git/blobdiff - source/lib/package.h
Define a macro to indicate which component is being built
[builder.git] / source / lib / package.h
index d13aa737b985a71a8a99242445bb5915472c66d3..9a10991ec8e94028ae74d27e553ceec233424d87 100644 (file)
@@ -9,7 +9,6 @@
 #include "config.h"
 
 class Builder;
-class Package;
 
 /**
 A package is a distributable piece of software.  Package information may be
@@ -38,6 +37,7 @@ protected:
        Requirements requires;
        BuildInfo export_binfo;
        bool prepared = false;
+       bool broken = false;
        std::vector<std::string> problems;
 
        bool use_pkgconfig = true;
@@ -66,6 +66,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() { }