From 8c1ae21e86a83a9f7b9ca1445b6d0d5c73a142b1 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 27 Nov 2010 13:12:11 -0600 Subject: Remove print statement Signed-off-by: Dan McGee --- devel/management/commands/reporead.py | 1 - 1 file changed, 1 deletion(-) (limited to 'devel/management/commands') diff --git a/devel/management/commands/reporead.py b/devel/management/commands/reporead.py index 6f7fd958..d8287ee0 100644 --- a/devel/management/commands/reporead.py +++ b/devel/management/commands/reporead.py @@ -139,7 +139,6 @@ def find_user(userstring): for token in name.split(): # ignore quoted parts; e.g. nicknames in strings if re.match(r'^[\'"].*[\'"]$', token): - print "token match:", token continue name_q &= (Q(first_name__icontains=token) | Q(last_name__icontains=token)) -- cgit v1.2.3-2-g168b 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(-) (limited to 'devel/management/commands') 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-2-g168b