aboutsummaryrefslogtreecommitdiff
path: root/bpkg/pkg-build-collect.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2023-06-01 21:26:04 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2023-06-15 22:57:53 +0300
commit5e6c781d4a1fafdb5e81c17b792cd36b7433ce90 (patch)
tree9c0e7c41d689bb00c7ef7e2c911aff938e0bc823 /bpkg/pkg-build-collect.hxx
parent5f2a12b015f957c33a7d8edbd06d2fe3594f8b3b (diff)
Add --deorphan pkg-build option
Diffstat (limited to 'bpkg/pkg-build-collect.hxx')
-rw-r--r--bpkg/pkg-build-collect.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/bpkg/pkg-build-collect.hxx b/bpkg/pkg-build-collect.hxx
index f237b11..144fbd3 100644
--- a/bpkg/pkg-build-collect.hxx
+++ b/bpkg/pkg-build-collect.hxx
@@ -345,6 +345,19 @@ namespace bpkg
//
static const uint16_t build_reevaluate = 0x0008;
+ // Set if this build action is for deorphaning of an existing package.
+ //
+ // Note that to deorphan a package we need to re-fetch it from an existing
+ // repository fragment (even if its version doesn't change).
+ //
+ static const uint16_t build_deorphan = 0x0010;
+
+ bool
+ deorphan () const
+ {
+ return (flags & build_deorphan) != 0;
+ }
+
bool
configure_only () const;