Skip to content

Commit c881d2e

Browse files
committed
Recognize Debian python package name, fixes: voxpupuli#506
Apply the suggested fix to recognize Debian python pacakges.
1 parent 461a8fa commit c881d2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/init.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
default => '',
6666
}
6767

68-
unless $version =~ Pattern[/\A(python)?[0-9](\.?[0-9])+/,
68+
unless $version =~ Pattern[/\A(python)?[0-9](\.?[0-9])*/,
6969
/\Apypy\Z/, /\Asystem\Z/, /\Arh-python[0-9]{2}(?:-python)?\Z/] {
7070
fail("version needs to be pypy, system or a version string like '36', '3.6' or 'python3.6' )")
7171
}

0 commit comments

Comments
 (0)