Skip to content

Commit 47f7f3b

Browse files
authored
Merge pull request #9085 from anhpt379/main
Fix failing to install packages with `-noarch` in name
2 parents a62d774 + ca36fc6 commit 47f7f3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/puppet/util/rpm_compare.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module Puppet::Util::RpmCompare
77
armv5tejl armv6l armv7l m68kmint s390 s390x ia64 x86_64 sh3 sh4
88
].freeze
99

10-
ARCH_REGEX = Regexp.new(ARCH_LIST.join('|\.'))
10+
ARCH_REGEX = Regexp.new('\.' + ARCH_LIST.join('|\.'))
1111

1212
# This is an attempt at implementing RPM's
1313
# lib/rpmvercmp.c rpmvercmp(a, b) in Ruby.

0 commit comments

Comments
 (0)