Skip to content
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 cache file creation on CentOS 7 #161

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hb9xar
Copy link

@hb9xar hb9xar commented Apr 13, 2018

With CentOS 7, the output format of "yum groupinfo" and "rpm -q" has changed slightly. This causes a failure when blueprint parses the the output during cache file creation (blueprintignore and blueprint-yum-exclusions).

This pull request fixes:

  • parsing of "yum groupinfo" output
    Package names may start with a '+' sign, preceeded by 3 or 4 spaces

  • paring of "rpm-qR":
    Prior to CentOS 7, all returned lines did include spaces (possibly located at the end of the line). With CentOS 7, no more trailing spaces are printed, causing the expression "line.rstrip()[0:line.find(' ')]" to fail for such line (stripping off the last character)

@hb9xar hb9xar changed the title fixed cache file creation on CentOS 7 Fix cache file creation on CentOS 7 Apr 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant