diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-04-04 12:32:48 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-04-04 12:32:48 +0000 |
commit | c2a9b75f6299e83ffaf397713e6e77a74c5911a0 (patch) | |
tree | 4396d95a3aba8fd11c6c4133bcfaf9cce4935893 | |
parent | 03384fc53b65bccaf3baf1b632c3bd5383720a40 (diff) |
Skip missing pkgdes
-rw-r--r-- | devel/management/commands/reporead.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index c444538b..66df7b97 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -103,6 +103,8 @@ class Pkg(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]) @@ -197,7 +199,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 |