diff options
Diffstat (limited to 'scripts/reporead.py')
-rwxr-xr-x | scripts/reporead.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/reporead.py b/scripts/reporead.py index 68c77ebe..958278b3 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': |