From 0dd128a6db267353090a3be90a564d888898ee8f Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sun, 31 Jan 2010 16:07:23 -0600 Subject: Handle empty pkgdesc and url a bit better Put an actual NULL in the database and handle it for both display and import. Also add a migration to clean up any bad data we currently have in there. Fixes FS#17144. Signed-off-by: Dan McGee --- scripts/reporead.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/reporead.py b/scripts/reporead.py index c346afa9..c0d43d1e 100755 --- a/scripts/reporead.py +++ b/scripts/reporead.py @@ -86,9 +86,9 @@ class Pkg(object): del val['name'] if 'desc' not in val: logger.warning("Package %s has no description" % selfdict['name']) - val['desc'] = '' + val['desc'] = None if 'url' not in val: - val['url'] = '' + val['url'] = None if 'license' not in val: val['license'] = [] for x in val.keys(): -- cgit v1.2.3-2-g168b