From 63696563a3955d968103bddf6b854798a661da5c Mon Sep 17 00:00:00 2001
From: Dan McGee <dan@archlinux.org>
Date: Fri, 23 Jul 2010 14:14:31 -0400
Subject: Add package groups model and display to packages

They show up but aren't hotlinked to anything...just yet.

Signed-off-by: Dan McGee <dan@archlinux.org>
---
 devel/management/commands/reporead.py | 5 +++++
 1 file changed, 5 insertions(+)

(limited to 'devel')

diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 854b6322..6f8c4c6f 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -169,6 +169,11 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None):
             dbpkg.packagedepend_set.create(depname=dpname, depvcmp=dpvcmp)
             logger.debug('Added %s as dep for pkg %s' % (dpname,repopkg.name))
 
+    if 'groups' in repopkg.__dict__:
+        for y in repopkg.groups:
+            dbpkg.packagegroup_set.create(name=y)
+
+
 def populate_files(dbpkg, repopkg, force=False):
     if not force:
         if not dbpkg.files_last_update or not dbpkg.last_update:
-- 
cgit v1.2.3-2-g168b