-
Notifications
You must be signed in to change notification settings - Fork 9
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
Version Comparison Broken #17
Comments
Well ... found problem ... easy fix: diff --git a/libPyKAN/version.py b/libPyKAN/version.py
index 298697d..e8045bd 100644
--- a/libPyKAN/version.py
+++ b/libPyKAN/version.py
@@ -78,7 +78,7 @@ class Version(object):
if str(self) == 'any' or str(other) == 'any':
return 0
if len(other.versionlist) > len(self.versionlist):
- return other.__cmp__(self)
+ return -other.__cmp__(self)
for c,i in enumerate(self.versionlist):
try:
j = other.versionlist[c] |
Create a pull request please and I'll merge it. |
andrewcchen
pushed a commit
to andrewcchen/pyKAN
that referenced
this issue
Dec 5, 2016
Merged. Thanks. Such a silly bug. I spent ages looking for it. That's always how it goes eh - the simplest bugs are the hardest to find. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To reproduce
Breaks installing mods only compatible with 1.2 on 1.2.1 install with minKSPversion set to 1.2.
The text was updated successfully, but these errors were encountered: