Skip to content

Commit

Permalink
Rollback to old version comparision + use new as fallback (really rea…
Browse files Browse the repository at this point in the history
…lly lame native, seriously....)
  • Loading branch information
jaymoulin committed May 31, 2019
1 parent d17770c commit f5c7ee6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION ?= 0.4.2
VERSION ?= 0.4.3
CACHE ?= --no-cache=1
FULLVERSION ?= ${VERSION}
archs ?= arm32v7 amd64 i386 arm64v8 arm32v6
Expand Down
2 changes: 1 addition & 1 deletion github_release_notifier/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
"""

__all__ = ['parser', 'webhook', 'notifier']
__version__ = '0.4.2'
__version__ = '0.4.3'
4 changes: 2 additions & 2 deletions github_release_notifier/notifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def run(file: str = __DEFAULT_FILE__) -> dict:
try:
for entry in parse(package):
try:
condition = LooseVersion(str(entry['version'])) > LooseVersion(str(get_version(package)))
except TypeError as e:
condition = version_compare(str(entry['version']), str(get_version(package))) > 0
except ValueError as e:
condition = LooseVersion(str(entry['version'])) > LooseVersion(str(get_version(package)))
if condition:
database = _get_database(file)
database[package] = entry['version']
Expand Down

0 comments on commit f5c7ee6

Please sign in to comment.