summaryrefslogtreecommitdiffstats
path: root/devel/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-29 19:05:34 +0100
committerDan McGee <dan@archlinux.org>2010-12-29 19:05:34 +0100
commit27e1f8a28932ecb803ee9be9c15fa5a9b0cb1779 (patch)
tree8ff2724b39f42c409d2b09f8fe2268d9c62487b4 /devel/management
parent97e8489ecbfc85c3759afdbe59605f3c0ffb4ce5 (diff)
downloadarchweb-27e1f8a28932ecb803ee9be9c15fa5a9b0cb1779.tar.gz
archweb-27e1f8a28932ecb803ee9be9c15fa5a9b0cb1779.tar.xz
Commit during reporead on a per-arch basis
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'devel/management')
-rw-r--r--devel/management/commands/reporead.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py
index d8287ee..b8b075a 100644
--- a/devel/management/commands/reporead.py
+++ b/devel/management/commands/reporead.py
@@ -232,6 +232,7 @@ def populate_files(dbpkg, repopkg, force=False):
dbpkg.files_last_update = datetime.now()
dbpkg.save()
+@transaction.commit_on_success
def db_update(archname, reponame, pkgs, options):
"""
Parses a list and updates the Arch dev database accordingly.
@@ -398,7 +399,6 @@ def validate_arch(arch):
available_arches = [x.name for x in Arch.objects.all()]
return arch in available_arches
-@transaction.commit_on_success
def read_repo(primary_arch, repo_file, options):
"""
Parses repo.db.tar.gz file and returns exit status.