diff options
author | Dan McGee <dan@archlinux.org> | 2011-03-23 20:19:00 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-03-23 20:19:00 -0500 |
commit | dad2ca8b3e42cbf0ad5a67be7016426ec4835a19 (patch) | |
tree | 30d786f5743bc16553da17f468c9f1c0fd8f6e4c /devel | |
parent | d6b148779f3a1119e30fa75c63a2a0e46938098c (diff) |
Clear out package relation sets before adding new values
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/management/commands/reporead.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 708b8a59..277196e2 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -267,12 +267,15 @@ def populate_pkg(dbpkg, repopkg, force=False, timestamp=None): for y in repopkg.optdepends: create_depend(dbpkg, y, True) + dbpkg.conflicts.all().delete() if hasattr(repopkg, 'conflicts'): for y in repopkg.conflicts: create_related(Conflict, dbpkg, y) + dbpkg.provides.all().delete() if hasattr(repopkg, 'provides'): for y in repopkg.provides: create_related(Provision, dbpkg, y, equals_only=True) + dbpkg.replaces.all().delete() if hasattr(repopkg, 'replaces'): for y in repopkg.replaces: create_related(Replacement, dbpkg, y) |