chiark / gitweb /
update: use only 7 chars of SHA256 for non-APK version name
[fdroidserver.git] / fdroidserver / update.py
index c79c6d52fdd578bcf74935c2d485cd9722832fcb..d7f21e4b458e974e86ad0ae5929d5f04a64ddc7c 100644 (file)
@@ -993,7 +993,7 @@ def scan_repo_files(apkcache, repodir, knownapks, use_date_from_file=False):
             repo_file['hash'] = shasum
             repo_file['hashType'] = 'sha256'
             repo_file['versionCode'] = 0
-            repo_file['versionName'] = shasum
+            repo_file['versionName'] = shasum[0:7]
             # the static ID is the SHA256 unless it is set in the metadata
             repo_file['packageName'] = shasum