Skip to content

Navigation Menu

Sign in
Sign up

Fix cache file creation on CentOS 7 - #161

Open
hb9xar wants to merge 1 commit into
devstructure:master from
hb9xar:master
Open

Fix cache file creation on CentOS 7 #161
hb9xar wants to merge 1 commit into
devstructure:master from
hb9xar:master

Conversation

@hb9xar

@hb9xar hb9xar commented Apr 13, 2018

Copy link
Copy Markdown

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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /