This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Fix recognizing newer OpenSUSE versions
ClosedPublic

Authored by mgorny on Nov 18 2016, 5:58 AM.

Details

Summary

Fix recognizing newer OpenSUSE versions that combine the two version
components into 'VERSION = x.y'. The check was written against an older
version that kept those two split as VERSION and PATCHLEVEL.

Diff Detail

Repository
rL LLVM

Event Timeline

mgorny updated this revision to Diff 78505.Nov 18 2016, 5:58 AM
mgorny retitled this revision from to [Driver] Fix recognizing newer OpenSUSE versions.
mgorny updated this object.
mgorny added reviewers: bruno, ismail.
mgorny added a subscriber: llvm-commits.
bruno edited edge metadata.Nov 18 2016, 9:36 AM

Can you add a testcase?

Can you add a testcase?

The test case is included in D25869 — that's how I noticed it being broken ;-). My original intent was to commit the refactor, then this fix, then the test case. I can move the failing test case here if you insist but I think that's just an unnecessary work.

Ping. @bruno, did you see my reply?

bruno accepted this revision.Nov 28 2016, 12:37 PM
bruno edited edge metadata.

Ok, seems reasonable. If there are any additional fixes you find out before committing the other one, please include the test in the patch instead. Thanks!

LGTM

This revision is now accepted and ready to land.Nov 28 2016, 12:37 PM
This revision was automatically updated to reflect the committed changes.