From: Calin Crisan Date: Sat, 16 May 2015 11:49:29 +0000 (+0300) Subject: added support for git-based motion versions X-Git-Url: http://www.vanbest.org/gitweb/?a=commitdiff_plain;h=42918a88cc5aa52edc402f86f88f9b0b6f0d18f7;p=motioneye-debian added support for git-based motion versions --- diff --git a/src/config.py b/src/config.py index d65c750..0a63012 100644 --- a/src/config.py +++ b/src/config.py @@ -1243,6 +1243,9 @@ def is_old_motion(): version = int(version[8:]) return version < _LAST_OLD_CONFIG_VERSIONS[0] + elif version.count('Git'): # e.g. Unofficial-Git-a5b5f13 + return False # all git versions are assumed to be new + else: # stable release, should be in the format x.y.z return update.compare_versions(version, _LAST_OLD_CONFIG_VERSIONS[1]) <= 0