From 27e1f8a28932ecb803ee9be9c15fa5a9b0cb1779 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 29 Dec 2010 12:05:34 -0600 Subject: Commit during reporead on a per-arch basis Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.3-54-g00ecf