summaryrefslogtreecommitdiff
path: root/hscript
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 21:41:10 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-08 21:41:10 -0500
commit3e948338a90dd6bd0ddc2582cf37c908f3611c56 (patch)
tree9f701f2bf9c1af747e61732b05b8c742526f844b /hscript
parent1591ee360fec1863ddf7ed536689e043bb03710e (diff)
downloadhorizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.gz
horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.bz2
horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.tar.xz
horizon-3e948338a90dd6bd0ddc2582cf37c908f3611c56.zip
hscript: handle packages with dot (.) character
Example: libssl1.0
Diffstat (limited to 'hscript')
-rw-r--r--hscript/meta.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index f333f0b..48125dc 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -42,7 +42,7 @@ bool Hostname::execute() const {
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::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;