Skip to content

Commit

Permalink
Merge pull request #9085 from anhpt379/main
Browse files Browse the repository at this point in the history
Fix failing to install packages with `-noarch` in name
  • Loading branch information
joshcooper authored Apr 11, 2024
2 parents a62d774 + ca36fc6 commit 47f7f3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/puppet/util/rpm_compare.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module Puppet::Util::RpmCompare
armv5tejl armv6l armv7l m68kmint s390 s390x ia64 x86_64 sh3 sh4
].freeze

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

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

0 comments on commit 47f7f3b

Please sign in to comment.