From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 231731381F3 for ; Sat, 1 Dec 2012 11:31:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F11DE21C007; Sat, 1 Dec 2012 11:31:29 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 8131721C007 for ; Sat, 1 Dec 2012 11:31:29 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 9B55933D938 for ; Sat, 1 Dec 2012 11:31:28 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 355F0E5436 for ; Sat, 1 Dec 2012 11:31:27 +0000 (UTC) From: "Magnus Granberg" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Magnus Granberg" Message-ID: <1354361472.7adef1310301c55b1fa6c5cfd17002687ce1b3d7.zorry@gentoo> Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/ X-VCS-Repository: dev/zorry X-VCS-Files: gobs/pym/old_cpv.py gobs/pym/package.py gobs/pym/pgsql_querys.py X-VCS-Directories: gobs/pym/ X-VCS-Committer: zorry X-VCS-Committer-Name: Magnus Granberg X-VCS-Revision: 7adef1310301c55b1fa6c5cfd17002687ce1b3d7 X-VCS-Branch: master Date: Sat, 1 Dec 2012 11:31:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 5eca27d9-49af-4fde-bce7-6ec94933ee54 X-Archives-Hash: 5f7f0b3f61545293f55b519d461e02c0 commit: 7adef1310301c55b1fa6c5cfd17002687ce1b3d7 Author: Magnus Granberg gentoo org> AuthorDate: Sat Dec 1 11:31:12 2012 +0000 Commit: Magnus Granberg gentoo org> CommitDate: Sat Dec 1 11:31:12 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=7adef131 fix some sytax error and indented blocks --- gobs/pym/old_cpv.py | 4 ++-- gobs/pym/package.py | 2 +- gobs/pym/pgsql_querys.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gobs/pym/old_cpv.py b/gobs/pym/old_cpv.py index 3d47c50..e644f36 100644 --- a/gobs/pym/old_cpv.py +++ b/gobs/pym/old_cpv.py @@ -8,7 +8,7 @@ from gobs.ConnectionManager import connectionManager CM=connectionManager(gobs_settings_dict) #selectively import the pgsql/mysql querys if CM.getName()=='pgsql': - from gobs.pgsql import * + from gobs.pgsql_querys import * class gobs_old_cpv(object): @@ -22,7 +22,7 @@ class gobs_old_cpv(object): cp, repo = get_cp_repo_from_package_id(conn, package_id) mytree = [] mytree.append(self._myportdb.getRepositoryPath(repo)) - ebuild_list_tree = self._myportdb.cp_list((cp, use_cache=1, mytree=mytree) + ebuild_list_tree = self._myportdb.cp_list(cp, use_cache=1, mytree=mytree) # Get ebuild list on categories, package in the db ebuild_list_db = cp_list_db(conn, package_id) # Check if don't have the ebuild in the tree diff --git a/gobs/pym/package.py b/gobs/pym/package.py index e123e8e..ed608ea 100644 --- a/gobs/pym/package.py +++ b/gobs/pym/package.py @@ -13,7 +13,7 @@ config_profile = gobs_settings_dict['gobs_config'] from gobs.ConnectionManager import connectionManager CM=connectionManager(gobs_settings_dict) #selectively import the pgsql/mysql querys -iif CM.getName()=='pgsql': +if CM.getName()=='pgsql': from gobs.pgsql_querys import * if CM.getName()=='mysql': from gobs.mysql_querys import * diff --git a/gobs/pym/pgsql_querys.py b/gobs/pym/pgsql_querys.py index 48dd825..c4ae37c 100644 --- a/gobs/pym/pgsql_querys.py +++ b/gobs/pym/pgsql_querys.py @@ -65,8 +65,8 @@ def update_repo_db(connection, repo_list): cursor.execute(sqlQ1, (repo,)) entries = cursor.fetchone() if entries is None: - cursor.execute(sqlQ2, (repo,)) - connection.commit() + cursor.execute(sqlQ2, (repo,)) + connection.commit() return def get_package_id(connection, categories, package, repo):