summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index 3b18865..299c1f0 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -137,9 +137,11 @@ bool Hostname::execute(ScriptOptions opts) const {
}
+static std::regex valid_pkg("[0-9A-Za-z+_.-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?");
+
+
Key *PkgInstall::parseFromData(const std::string &data, int lineno, int *errors,
int *warnings) {
- std::regex valid_pkg("[0-9A-Za-z+_.-]*((>?<|[<>]?=|[~>])[0-9A-Za-z-_.]+)?");
std::string next_pkg;
std::istringstream stream(data);
std::set<std::string> all_pkgs;