-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix failing to install packages with -noarch
in name
#9085
Conversation
We're missing a `\.` at the beginning, since `.join()` only puts `|\.` in between items: ``` >> ARCH_REGEX = Regexp.new(ARCH_LIST.join('|\.')) => /noarch|\.i386|\.i686|\.ppc|\.ppc64|\.armv3l|\.armv4b|\.armv4l|\.armv4tl|\.armv5tel|\.armv5tejl|\.armv6l|\.armv7l|\.m68kmint|\.s390|\.s390x|\.ia64|\.x86_64|\.sh3|\.sh4/ ``` Currently puppet is failing to install package with `-noarch` string in its name because of the invalid ARCH_REGEX: ``` package { 'package-name-noarch': ensure => '1.0.0.el8' } ``` ``` Debug: Executing: '/bin/dnf -d 0 -e 1 -y install package-name--1.0.0.el8noarch' Error: Could not update: Execution of '/bin/dnf -d 0 -e 1 -y install package-name--1.0.0.el8noarch' returned 1: Error: Unable to find a match: package-name--1.0.0.el7noarch ```
Can one of the admins verify this patch? |
Hi @anhpt379 thank you for your contribution. Could you sign the CLA? |
Hi @anhpt379 could you review my last comment? |
I have signed it at least 2 times, but the status doesn't get updated. I've signed it again. Please check now. |
@anhpt379 sorry I completely missed that you signed it. We've updated our rspec checks since you submitted this, so I need to close and reopen the PR to trigger the correct set of checks. |
I agree the
|
Ah I see, I can reproduce as:
With this change:
|
We're missing a
\.
at the beginning, since.join()
only puts|\.
in between items:Currently puppet is failing to install package with
-noarch
string in its name because of the invalid ARCH_REGEX: