summaryrefslogtreecommitdiffstats
path: root/devel/management/commands
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-07-28 22:01:12 +0200
committerDan McGee <dan@archlinux.org>2010-07-28 22:01:32 +0200
commit88eb925d03b938d761c80d945171db91735e9e2a (patch)
tree971c4f25b146d14f8241678d139fda4b8f62213a /devel/management/commands
parented5c5f525a8eba7d1e4083be9066022f0d562fa0 (diff)
downloadarchweb-88eb925d03b938d761c80d945171db91735e9e2a.tar.gz
archweb-88eb925d03b938d761c80d945171db91735e9e2a.tar.xz
Add missing group delete in reporead
Otherwise we get duplicate groups each time we update the package, and any group removals would never actually happen. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management/commands')
-rw-r--r--devel/management/commands/reporead.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index 082813d..cd964dd 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -219,6 +219,7 @@ 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))
+ dbpkg.packagegroup_set.all().delete()
if 'groups' in repopkg.__dict__:
for y in repopkg.groups:
dbpkg.packagegroup_set.create(name=y)