X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Flib%2Fpackage.h;h=e64c6986cf9e2a2d6f441cce666cbbde68c9db3d;hb=3d6dd09af3bd2a5f81e2d79e9fa1e302bf2c70a0;hp=d13aa737b985a71a8a99242445bb5915472c66d3;hpb=c8e829c219c65ff8e93b6c7b66212ff0876441c5;p=builder.git diff --git a/source/lib/package.h b/source/lib/package.h index d13aa73..e64c698 100644 --- a/source/lib/package.h +++ b/source/lib/package.h @@ -7,16 +7,16 @@ #include "buildinfo.h" #include "conditionalloader.h" #include "config.h" +#include "libbuilder_api.h" class Builder; -class Package; /** A package is a distributable piece of software. Package information may be obtained in several ways: Build files of source packages, pkg-config for binary packages and the builderrc file for binary packages with no pkg-config support. */ -class Package +class LIBBUILDER_API Package { public: class Loader: public Msp::DataFile::ObjectLoader, public ArchitectureConditional @@ -38,6 +38,7 @@ protected: Requirements requires; BuildInfo export_binfo; bool prepared = false; + bool broken = false; std::vector 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 &get_problems() const { return problems; } virtual void save_caches() { }