From 5e6c781d4a1fafdb5e81c17b792cd36b7433ce90 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 1 Jun 2023 21:26:04 +0300 Subject: Add --deorphan pkg-build option --- bpkg/pkg-build-collect.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'bpkg/pkg-build-collect.hxx') 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; -- cgit v1.1