]> www.vanbest.org Git - motioneye-debian/commitdiff
added support for git-based motion versions
authorCalin Crisan <ccrisan@gmail.com>
Sat, 16 May 2015 11:49:29 +0000 (14:49 +0300)
committerCalin Crisan <ccrisan@gmail.com>
Sat, 16 May 2015 11:49:29 +0000 (14:49 +0300)
src/config.py

index d65c75006ac3cd33f948466ba75df457c4cd1be6..0a63012a77b89c6cf0b4fcd755d2fd6aff2d2216 100644 (file)
@@ -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