summaryrefslogtreecommitdiff
path: root/devel/management/commands
diff options
context:
space:
mode:
Diffstat (limited to 'devel/management/commands')
-rw-r--r--devel/management/commands/reporead.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index f83b127e..32e7929e 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -135,7 +135,10 @@ class Pkg(object):
def populate_pkg(dbpkg, repopkg, force=False, timestamp=None):
- dbpkg.pkgbase = repopkg.base
+ if repopkg.base:
+ dbpkg.pkgbase = repopkg.base
+ else:
+ dbpkg.pkgbase = repopkg.name
dbpkg.pkgver = repopkg.ver
dbpkg.pkgrel = repopkg.rel
dbpkg.pkgdesc = repopkg.desc