Skip to content

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