diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-05 01:10:26 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2023-12-05 01:10:26 -0600 |
commit | f211fb157121547e969031fe69dbeda27fffdca4 (patch) | |
tree | 2e658fe4e4b5649d0df475660f1fc463d02a0846 /hscript | |
parent | 9bd8de74b0a5c9e881e15df395b98e4677228488 (diff) | |
download | horizon-f211fb157121547e969031fe69dbeda27fffdca4.tar.gz horizon-f211fb157121547e969031fe69dbeda27fffdca4.tar.bz2 horizon-f211fb157121547e969031fe69dbeda27fffdca4.tar.xz horizon-f211fb157121547e969031fe69dbeda27fffdca4.zip |
hscript: meta/PkgInstall: Allow negative selection
This allows the installation of 'negative selections' or the purposeful
exclusion of packages from the installed environment.
Diffstat (limited to 'hscript')
-rw-r--r-- | hscript/meta.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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, |