summaryrefslogtreecommitdiff
path: root/devel/management
diff options
context:
space:
mode:
Diffstat (limited to 'devel/management')
-rw-r--r--devel/management/commands/reporead.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 40329f95..3eaa6110 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -107,6 +107,8 @@ class RepoPackage(object):
setattr(self, k, long(v[0]))
elif k in ('desc', 'pgpsig'):
# do NOT prune these values at all
+ if v[0] == None:
+ v[0] = 'missing'
setattr(self, k, v[0])
elif k == 'version':
match = self.version_re.match(v[0])
@@ -210,7 +212,10 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None):
dbpkg.pkgver = repopkg.ver
dbpkg.pkgrel = repopkg.rel
dbpkg.epoch = repopkg.epoch
- dbpkg.pkgdesc = repopkg.desc
+ try:
+ dbpkg.pkgdesc = repopkg.desc
+ except AttributeError:
+ dbpkg.pkgdesc = "missing"
dbpkg.url = repopkg.url
dbpkg.filename = repopkg.filename
dbpkg.compressed_size = repopkg.csize