Repository navigation
implement version_cmp for zypper - #31233
Merged
cachedout merged 3 commits intoFeb 17, 2016
Merged
Conversation
mcalmer
force-pushed
the
2015.8-zypperpy-add-version_cmp
branch
from
February 16, 2016 15:40
5e5b303 to
6ad6a90
Compare
|
|
||
| # Import 3rd-party libs | ||
| # pylint: disable=import-error,redefined-builtin,no-name-in-module | ||
| import rpm |
Contributor
There was a problem hiding this comment.
We need to try/except this and then load this module in __virtual__ according to the results. Otherwise, this will stacktrace on installations without the rpm module installed.
Contributor
Author
|
@cachedout - I have implemented an import check like the other pkg modules have them. |
Contributor
|
@mcalmer Much appreciated. Thank you! |
cachedout
pushed a commit
that referenced
this pull request
Feb 17, 2016
implement version_cmp for zypper
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
version_cmp is used inside of the states. To work correctly with versions, zypper.py should implemt it.