Code Review
/
puppet-modules
/
puppetlabs-apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
3ea17dc
)
Updated regex in mark.pp
author
Michiel Brandenburg
<apex@xepa.nl>
Wed, 21 Dec 2022 21:44:08 +0000
(22:44 +0100)
committer
GitHub
<noreply@github.com>
Wed, 21 Dec 2022 21:44:08 +0000
(22:44 +0100)
Now using debian policy manual as reference
manifests/mark.pp
patch
|
blob
|
history
diff --git
a/manifests/mark.pp
b/manifests/mark.pp
index 492886d2eb007dae8f06512a94d281c0cf213b44..8aeca121bd71560d1b4edbe95c465255f3540bd6 100644
(file)
--- a/
manifests/mark.pp
+++ b/
manifests/mark.pp
@@
-8,7
+8,7
@@
define apt::mark (
Enum['auto','manual','hold','unhold'] $setting,
) {
- if $title !~ /^[a-z
A-Z0-9\-_\.]+
$/ {
+ if $title !~ /^[a-z
0-9]{2}[a-z0-9.+\-]*
$/ {
fail("Invalid package name: ${title}")
}