From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RDogP-0004Tr-9X for garchives@archives.gentoo.org; Wed, 12 Oct 2011 02:36:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2F3CE21C059; Wed, 12 Oct 2011 02:36:30 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 041BC21C059 for ; Wed, 12 Oct 2011 02:36:29 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4606B1B403E for ; Wed, 12 Oct 2011 02:36:29 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 35A2880057 for ; Tue, 11 Oct 2011 23:51:31 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <52f15d1c62599de4f1bbb2c7a45d7a6aa01ecf66.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/pym/pgsql.py X-VCS-Directories: gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 52f15d1c62599de4f1bbb2c7a45d7a6aa01ecf66 Date: Tue, 11 Oct 2011 23:51:31 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 40aa394e410b189ee85d371ec58da7b9 commit: 52f15d1c62599de4f1bbb2c7a45d7a6aa01ecf66 Author: Magnus Granberg gentoo org> AuthorDate: Tue Oct 11 23:51:17 2011 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Tue Oct 11 23:51:17 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/zorry.git;a=3D= commit;h=3D52f15d1c fix a bug when get queue_id for the logging thing part2 --- gobs/pym/pgsql.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gobs/pym/pgsql.py b/gobs/pym/pgsql.py index aeda4eb..5f6a2d6 100644 --- a/gobs/pym/pgsql.py +++ b/gobs/pym/pgsql.py @@ -70,13 +70,13 @@ def check_revision(connection, build_dict): for queue_id in queue_id_list: cursor.execute(sqlQ2, (queue_id[0],)) entries =3D cursor.fetchall() - build_useflags =3D [] + queue_useflags =3D [] if entries =3D=3D []: - build_useflags =3D None + queue_useflags =3D None else: for use_line in sorted(entries): - build_useflags.append(use_line[0]) - if build_useflags =3D=3D build_dict['build_useflags']: + queue_useflags.append(use_line[0]) + if queue_useflags =3D=3D build_dict['build_useflags']: return queue_id[0] return None =20