Skip to content

Commit de4dfd3

Browse files
committed
allow RpmNameGlob for versionlock entries
As stated in the manpage [1] yum versionlock supports package-wildcard and does not require exact matches for package-names. The following is valid `versionlock.list` content: ``` libvirt*-0:7.6.0-*.* qemu*-0:6.1.0-*.* ``` This commit swaps `Yum::RpmName` with `Yum::RpmNameGlob` for the versionlock `assert_type()` and thus allowing the above mentioned examples. [1] https://man7.org/linux/man-pages/man1/yum-versionlock.1.html
1 parent 5c8a70b commit de4dfd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

manifests/versionlock.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676

7777
$_versionlock = "${line_prefix}${name}"
7878
} else {
79-
assert_type(Yum::RpmName, $name) |$_expected, $actual | {
79+
assert_type(Yum::RpmNameGlob, $name) |$_expected, $actual | {
8080
fail("Package name must be formatted as Yum::RpmName, not \'${actual}\'. See Yum::Rpmname documentation for details.")
8181
}
8282

0 commit comments

Comments
 (0)