]> review.fuel-infra Code Review - puppet-modules/puppetlabs-apt.git/commitdiff
Merge branch 'main' into xepa-patch-1
authorMichiel Brandenburg <apex@xepa.nl>
Mon, 9 Jan 2023 11:14:08 +0000 (12:14 +0100)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 11:14:08 +0000 (12:14 +0100)
manifests/mark.pp

index 08e396c02f1e28fe93e0bedca97b2f08eef395f6..8aeca121bd71560d1b4edbe95c465255f3540bd6 100644 (file)
@@ -8,7 +8,7 @@
 define apt::mark (
   Enum['auto','manual','hold','unhold'] $setting,
 ) {
-  if $title !~ /^[a-zA-Z0-9\-_]+$/ {
+  if $title !~ /^[a-z0-9]{2}[a-z0-9.+\-]*$/ {
     fail("Invalid package name: ${title}")
   }