Gentoo Archives: gentoo-commits

From: Magnus Granberg <zorry@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/zorry:master commit in: gobs/pym/
Date: Sat, 01 Dec 2012 11:31:39
Message-Id: 1354361472.7adef1310301c55b1fa6c5cfd17002687ce1b3d7.zorry@gentoo
1 commit: 7adef1310301c55b1fa6c5cfd17002687ce1b3d7
2 Author: Magnus Granberg <zorry <AT> gentoo <DOT> org>
3 AuthorDate: Sat Dec 1 11:31:12 2012 +0000
4 Commit: Magnus Granberg <zorry <AT> gentoo <DOT> org>
5 CommitDate: Sat Dec 1 11:31:12 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/zorry.git;a=commit;h=7adef131
7
8 fix some sytax error and indented blocks
9
10 ---
11 gobs/pym/old_cpv.py | 4 ++--
12 gobs/pym/package.py | 2 +-
13 gobs/pym/pgsql_querys.py | 4 ++--
14 3 files changed, 5 insertions(+), 5 deletions(-)
15
16 diff --git a/gobs/pym/old_cpv.py b/gobs/pym/old_cpv.py
17 index 3d47c50..e644f36 100644
18 --- a/gobs/pym/old_cpv.py
19 +++ b/gobs/pym/old_cpv.py
20 @@ -8,7 +8,7 @@ from gobs.ConnectionManager import connectionManager
21 CM=connectionManager(gobs_settings_dict)
22 #selectively import the pgsql/mysql querys
23 if CM.getName()=='pgsql':
24 - from gobs.pgsql import *
25 + from gobs.pgsql_querys import *
26
27 class gobs_old_cpv(object):
28
29 @@ -22,7 +22,7 @@ class gobs_old_cpv(object):
30 cp, repo = get_cp_repo_from_package_id(conn, package_id)
31 mytree = []
32 mytree.append(self._myportdb.getRepositoryPath(repo))
33 - ebuild_list_tree = self._myportdb.cp_list((cp, use_cache=1, mytree=mytree)
34 + ebuild_list_tree = self._myportdb.cp_list(cp, use_cache=1, mytree=mytree)
35 # Get ebuild list on categories, package in the db
36 ebuild_list_db = cp_list_db(conn, package_id)
37 # Check if don't have the ebuild in the tree
38
39 diff --git a/gobs/pym/package.py b/gobs/pym/package.py
40 index e123e8e..ed608ea 100644
41 --- a/gobs/pym/package.py
42 +++ b/gobs/pym/package.py
43 @@ -13,7 +13,7 @@ config_profile = gobs_settings_dict['gobs_config']
44 from gobs.ConnectionManager import connectionManager
45 CM=connectionManager(gobs_settings_dict)
46 #selectively import the pgsql/mysql querys
47 -iif CM.getName()=='pgsql':
48 +if CM.getName()=='pgsql':
49 from gobs.pgsql_querys import *
50 if CM.getName()=='mysql':
51 from gobs.mysql_querys import *
52
53 diff --git a/gobs/pym/pgsql_querys.py b/gobs/pym/pgsql_querys.py
54 index 48dd825..c4ae37c 100644
55 --- a/gobs/pym/pgsql_querys.py
56 +++ b/gobs/pym/pgsql_querys.py
57 @@ -65,8 +65,8 @@ def update_repo_db(connection, repo_list):
58 cursor.execute(sqlQ1, (repo,))
59 entries = cursor.fetchone()
60 if entries is None:
61 - cursor.execute(sqlQ2, (repo,))
62 - connection.commit()
63 + cursor.execute(sqlQ2, (repo,))
64 + connection.commit()
65 return
66
67 def get_package_id(connection, categories, package, repo):