Skip to content

Commit 2603800

Browse files
committed
add posibility to insert pkg versions starting with v
1 parent cdcb65e commit 2603800

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

manifests/pip.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
# If it wasn't or if there is any error, the package manager will trigger a failure.
161161
$grep_regex = $_ensure ? {
162162
/^(present|absent|latest)$/ => "^${real_pkgname}[[:space:]].*$",
163-
/^[0-9].*$/ => "^${real_pkgname}[[:space:]]\\+(\\?${_ensure}\\()$\\|$\\|, \\|[[:space:]]\\)",
163+
/^[v]?[0-9].*$/ => "^${real_pkgname}[[:space:]]\\+(\\?${_ensure}\\()$\\|$\\|, \\|[[:space:]]\\)",
164164
default => fail('ensure can be a version number or one of: present, absent, latest')
165165
}
166166

0 commit comments

Comments
 (0)