From 630874b7ef55277c763671be76a5b238d6699553 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Thu, 17 Feb 2022 12:20:44 +0300 Subject: Fix selected_package::external() to check for system package from imaginary repository --- bpkg/package.hxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bpkg/package.hxx') diff --git a/bpkg/package.hxx b/bpkg/package.hxx index 489f909..ad2b7a8 100644 --- a/bpkg/package.hxx +++ b/bpkg/package.hxx @@ -1144,7 +1144,10 @@ namespace bpkg // pkg-unpack --existing // - (repository_fragment.empty () && !archive); + // Note that the system package can have no repository associated (see + // imaginary system repository in pkg-build.cxx for details). + // + (repository_fragment.empty () && !archive && !system ()); } // Represent the wildcard version with the "*" string. Represent naturally -- cgit v1.1