summaryrefslogtreecommitdiff
path: root/devel/management
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-12-29 12:05:34 -0600
committerDan McGee <dan@archlinux.org>2010-12-29 12:05:34 -0600
commit27e1f8a28932ecb803ee9be9c15fa5a9b0cb1779 (patch)
tree8ff2724b39f42c409d2b09f8fe2268d9c62487b4 /devel/management
parent97e8489ecbfc85c3759afdbe59605f3c0ffb4ce5 (diff)
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 d8287ee0..b8b075a6 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.