summaryrefslogtreecommitdiffstats
path: root/aurweb/git/update.py
diff options
context:
space:
mode:
Diffstat (limited to 'aurweb/git/update.py')
-rwxr-xr-xaurweb/git/update.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/aurweb/git/update.py b/aurweb/git/update.py
index 73373410..af2dfed8 100755
--- a/aurweb/git/update.py
+++ b/aurweb/git/update.py
@@ -324,8 +324,9 @@ def main():
die_commit('invalid package name: {:s}'.format(
pkginfo['pkgname']), str(commit.id))
- for field in ('pkgname', 'pkgdesc', 'url'):
- if field in pkginfo and len(pkginfo[field]) > 255:
+ max_len = {'pkgname': 255, 'pkgdesc': 255, 'url': 8000}
+ for field in max_len.keys():
+ if field in pkginfo and len(pkginfo[field]) > max_len[field]:
die_commit('{:s} field too long: {:s}'.format(field,
pkginfo[field]), str(commit.id))