From f211fb157121547e969031fe69dbeda27fffdca4 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Tue, 5 Dec 2023 01:10:26 -0600 Subject: hscript: meta/PkgInstall: Allow negative selection This allows the installation of 'negative selections' or the purposeful exclusion of packages from the installed environment. --- hscript/meta.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hscript') diff --git a/hscript/meta.cc b/hscript/meta.cc index 8079b1a..e2d6d28 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -220,7 +220,7 @@ bool Arch::execute() const { } -static std::regex valid_pkg("[0-9A-Za-z+_.-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?"); +static std::regex valid_pkg("[!]?[0-9A-Za-z+_.-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?"); Key *PkgInstall::parseFromData(const std::string &data, -- cgit v1.2.3-60-g2f50