summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/reporead.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py
index 68c77eb..958278b 100755
--- a/scripts/reporead.py
+++ b/scripts/reporead.py
@@ -84,6 +84,10 @@ class Pkg(object):
if len(val[x]) == 0:
logger.warning("Package %s has no %s" % (selfdict['name'],x))
selfdict[x] = ''.join(val[x])
+ # make sure we don't have elements larger than the db char
+ # fields
+ if len(selfdict[x]) > 255:
+ selfdict[x] = selfdict[x][:254]
elif x == 'force':
selfdict[x] = True
elif x == 'version':