summaryrefslogtreecommitdiffstats
path: root/main/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-27 03:38:08 +0100
committerDan McGee <dan@archlinux.org>2010-02-27 03:42:13 +0100
commit31522fad893f7ecc836dc215b6b79daaaa64ce65 (patch)
tree7e205e9609d9155d813d6c0ab562af886b489944 /main/models.py
parent990e3862632e3a354566d86916a72079b27b06a4 (diff)
downloadarchweb-31522fad893f7ecc836dc215b6b79daaaa64ce65.tar.gz
archweb-31522fad893f7ecc836dc215b6b79daaaa64ce65.tar.xz
Add some additional fields to package import
We can capture the build date, compressed size, and installed size when reporead runs. Even if we don't show all of it, we should pull it in. FS#14270 is requesting that the package size be shown on the website. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main/models.py')
-rw-r--r--main/models.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index 28041b1..373c3e0 100644
--- a/main/models.py
+++ b/main/models.py
@@ -170,6 +170,9 @@ class Package(models.Model):
pkgrel = models.CharField(max_length=255)
pkgdesc = models.CharField(max_length=255)
url = models.CharField(max_length=255)
+ compressed_size = models.PositiveIntegerField(null=True)
+ installed_size = models.PositiveIntegerField(null=True)
+ build_date = models.DateTimeField(null=True)
last_update = models.DateTimeField(null=True, blank=True)
license = models.CharField(max_length=255)
objects = PackageManager()