summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-05 01:10:26 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2023-12-05 01:10:26 -0600
commitf211fb157121547e969031fe69dbeda27fffdca4 (patch)
tree2e658fe4e4b5649d0df475660f1fc463d02a0846
parent9bd8de74b0a5c9e881e15df395b98e4677228488 (diff)
downloadhorizon-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.
-rw-r--r--hscript/meta.cc2
-rw-r--r--[-rwxr-xr-x]ui/qt5/resources/intro-high.pngbin360813 -> 325204 bytes
-rw-r--r--[-rwxr-xr-x]ui/qt5/resources/intro-low.pngbin126573 -> 126206 bytes
3 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,
diff --git a/ui/qt5/resources/intro-high.png b/ui/qt5/resources/intro-high.png
index 91ea745..19b30b5 100755..100644
--- a/ui/qt5/resources/intro-high.png
+++ b/ui/qt5/resources/intro-high.png
Binary files differ
diff --git a/ui/qt5/resources/intro-low.png b/ui/qt5/resources/intro-low.png
index 191c136..4d0e6f6 100755..100644
--- a/ui/qt5/resources/intro-low.png
+++ b/ui/qt5/resources/intro-low.png
Binary files differ