summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rwxr-xr-xdevel/management/commands/reporead.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 733e9d3e..90337b8d 100755
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -137,6 +137,10 @@ def populate_pkg(dbpkg, repopkg, timestamp=None):
dbpkg.pkgdesc = repopkg.desc
dbpkg.license = repopkg.license
dbpkg.url = repopkg.url
+ dbpkg.compressed_size = int(repopkg.csize)
+ dbpkg.installed_size = int(repopkg.isize)
+ dbpkg.build_date = datetime.utcfromtimestamp(int(repopkg.builddate))
+
dbpkg.needupdate = False
dbpkg.last_update = timestamp
dbpkg.save()